diff --git a/lib/logging.js b/lib/logging.js index 2535273..70509e1 100644 --- a/lib/logging.js +++ b/lib/logging.js @@ -59,10 +59,10 @@ "]"; if (typeof args[0] === "string"){ args[0] = pre + " " + args[0]; - args.splice(1, 0, colors[level]); + args.splice(1, 0, colors[level] || ""); } else { - args.unshift(colors[level]); + args.unshift(colors[level] || ""); args.unshift(pre); } console.log.apply(console, args);