Skip to content

Commit 70b72a9

Browse files
authored
fix(logging): Util inspect for logging the config. (#3332)
While flatten is accruate and works with circular data, it's too hard to read.
1 parent 1087926 commit 70b72a9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/server.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ const path = require('path')
1111

1212
const BundleUtils = require('./utils/bundle-utils')
1313
const NetUtils = require('./utils/net-utils')
14-
const JsonUtils = require('./utils/json-utils')
1514
const root = global || window || this
1615

1716
const cfg = require('./config')
@@ -65,7 +64,7 @@ class Server extends KarmaEventEmitter {
6564

6665
const config = cfg.parseConfig(cliOptions.configFile, cliOptions)
6766

68-
this.log.debug('Final config', JsonUtils.stringify(config, null, 2))
67+
this.log.debug('Final config', util.inspect(config, false, /** depth **/ null))
6968

7069
let modules = [{
7170
helper: ['value', helper],

0 commit comments

Comments
 (0)