diff --git a/contrib/scripts/NM-log b/contrib/scripts/NM-log index 7a35b17b10..5f92bbae3c 100755 --- a/contrib/scripts/NM-log +++ b/contrib/scripts/NM-log @@ -34,7 +34,9 @@ NM-colorize() { if [[ "$NM_LOG_NO_COLOR" == "" ]]; then # poor man's coloring using grep. # TODO: do it somehow better (and more efficient). - GREP_COLOR='01;33' grep -a --color=always '^\|^\(.* \)\?<\(warn>\|info> \|error>\) \(.*\.*$\)\?' | \ + sed 's/\r$//' | \ + GREP_COLOR='01;31' grep -a --color=always '^\|^\(.* \)\?<\(warn> \|error>\) \[[0-9.]*\] ' | \ + GREP_COLOR='01;33' grep -a --color=always '^\|^\(.* \)\? \[[0-9.]*\] \(.*\.*$\)\?' | \ GREP_COLOR='01;37' grep -a --color=always '^\|\