Skip to content

Commit

Permalink
Fix #88 logger.debug on Node 8
Browse files Browse the repository at this point in the history
  • Loading branch information
icebob committed Oct 27, 2017
1 parent 27dafc3 commit 4431b29
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/logger.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,10 @@ module.exports = {
}

let method = baseLogger[type];

if (baseLogger === console && process.versions.node.split(".")[0] == 8 && type === "debug")
method = null;

if (!method) {
switch(type) {
case "fatal":method = baseLogger["error"] || baseLogger["info"]; break;
Expand Down

0 comments on commit 4431b29

Please sign in to comment.