From 70b72a91834c531adc259b8d88f9907ec8d0d13d Mon Sep 17 00:00:00 2001 From: johnjbarton Date: Fri, 12 Jul 2019 09:23:09 -0700 Subject: [PATCH] fix(logging): Util inspect for logging the config. (#3332) While flatten is accruate and works with circular data, it's too hard to read. --- lib/server.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/server.js b/lib/server.js index c883d1384..693610184 100644 --- a/lib/server.js +++ b/lib/server.js @@ -11,7 +11,6 @@ const path = require('path') const BundleUtils = require('./utils/bundle-utils') const NetUtils = require('./utils/net-utils') -const JsonUtils = require('./utils/json-utils') const root = global || window || this const cfg = require('./config') @@ -65,7 +64,7 @@ class Server extends KarmaEventEmitter { const config = cfg.parseConfig(cliOptions.configFile, cliOptions) - this.log.debug('Final config', JsonUtils.stringify(config, null, 2)) + this.log.debug('Final config', util.inspect(config, false, /** depth **/ null)) let modules = [{ helper: ['value', helper],