Skip to content

Commit

Permalink
fix(logging): Util inspect for logging the config.
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 committed Jun 25, 2019
1 parent 182c04d commit 1f1024e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/server.js
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 1f1024e

Please sign in to comment.