X-Git-Url: https://git.r.bdr.sh/rbdr/cologne/blobdiff_plain/09fad45d9827ede702846a569ce0b0a82956b948..5c03d3b44c5daeb34180c6922fcf3307f1217cbc:/lib/loggers/console.js?ds=sidebyside diff --git a/lib/loggers/console.js b/lib/loggers/console.js index e8f4d86..c8e3036 100644 --- a/lib/loggers/console.js +++ b/lib/loggers/console.js @@ -40,13 +40,15 @@ for (i = 0; i < arguments.length; i++) { // We're not formatting objects for now. - if (typeof arguments[i].message === 'object') { - message.push(arguments[i].message); - } else { - message.push(this.format(arguments[i])); - } - if (!severity) { - severity = arguments[i]._level + if (!arguments[i].__skipConsole && !arguments[i].message.__skipConsole) { + if (typeof arguments[i].message === 'object') { + message.push(arguments[i].message); + } else { + message.push(this.format(arguments[i])); + } + if (!severity) { + severity = arguments[i]._level + } } }