X-Git-Url: https://git.r.bdr.sh/rbdr/cologne/blobdiff_plain/09fad45d9827ede702846a569ce0b0a82956b948..941d09019e402ac565101fba6d824bd48504c90b:/lib/loggers/console.js?ds=inline 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 + } } }