mirror of
https://github.com/verdaccio/verdaccio.git
synced 2024-12-30 22:34:10 -05:00
don't color multiline strings in logs output
stack traces should be easily recognizable
This commit is contained in:
parent
0cec69ee1d
commit
8ea985ff6b
1 changed files with 1 additions and 1 deletions
|
@ -132,7 +132,7 @@ function print(type, msg, obj, colors) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (typeof(str) === 'string') {
|
if (typeof(str) === 'string') {
|
||||||
if (!colors) {
|
if (!colors || ~str.indexOf('\n')) {
|
||||||
return str
|
return str
|
||||||
} else if (is_error) {
|
} else if (is_error) {
|
||||||
return '\033[31m' + str + '\033[39m'
|
return '\033[31m' + str + '\033[39m'
|
||||||
|
|
Loading…
Reference in a new issue