UNPKG

@dydxfoundation/governance

Version:
18 lines (17 loc) 624 B
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.log = void 0; const config_1 = __importDefault(require("../config")); function log(...args) { const shouldLogDefault = !config_1.default.isHardhat() || config_1.default.FORK_MAINNET; const shouldLog = config_1.default.DEPLOYMENT_LOGS !== null ? config_1.default.DEPLOYMENT_LOGS : shouldLogDefault; if (shouldLog) { console.log(...args); } } exports.log = log;