diff --git a/lib/logger.js b/lib/logger.js index 1b9af080e..0cc4f3547 100644 --- a/lib/logger.js +++ b/lib/logger.js @@ -132,7 +132,7 @@ function print(type, msg, obj, colors) { } if (typeof(str) === 'string') { - if (!colors) { + if (!colors || ~str.indexOf('\n')) { return str } else if (is_error) { return '\033[31m' + str + '\033[39m'