Skip to content

Commit

Permalink
fix(config): Log the final config just before use. (#3041)
Browse files Browse the repository at this point in the history
Many problems in karma use can be resolved by reading the config, but plugins can mutate the config.
Here debug logging will give the final result after any mutations.
  • Loading branch information
johnjbarton committed Jun 14, 2018
1 parent 0dc8ea4 commit 05dd09a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/server.js
Expand Up @@ -58,6 +58,8 @@ class Server extends KarmaEventEmitter {

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

this.log.debug('Final config', JSON.stringify(config, null, 2))

let modules = [{
helper: ['value', helper],
logger: ['value', logger],
Expand Down

0 comments on commit 05dd09a

Please sign in to comment.