Skip to content

Commit

Permalink
minor bug fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
Morgul committed Jun 27, 2019
1 parent 5a233f2 commit dac427f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion example/logging-example.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const logging = require('../logging');

//----------------------------------------------------------------------------------------------------------------------

logging.init({ debugStream: true, level: 'debug' });
logging.init({ debug: true });
logging.setRootLogger('example');

//----------------------------------------------------------------------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion example/null-logging-example.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const logging = require('../logging');

//----------------------------------------------------------------------------------------------------------------------

logging.init({ debugStream: true, level: debug, nullLogger: true });
logging.init({ debug: true, nullLogger: true });
logging.setRootLogger('example');

//----------------------------------------------------------------------------------------------------------------------
Expand Down
1 change: 1 addition & 0 deletions logging.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ class LoggingService {
{
// Pull out the streams config, with sane defaults.
const streams = ((config.logging || config).streams) || this.streams;
config.level = config.level || (config.debug ? 'debug' : 'info');

if(config.nullLogger)
{
Expand Down

0 comments on commit dac427f

Please sign in to comment.