Skip to content

Commit

Permalink
fix(logging): Util inspect for logging the config. (#3332)
Browse files Browse the repository at this point in the history
While flatten is accruate and works with circular data, it's too hard to read.
  • Loading branch information
johnjbarton authored Jul 12, 2019
1 parent 1087926 commit 70b72a9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down Expand Up @@ -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],
Expand Down

0 comments on commit 70b72a9

Please sign in to comment.