diff options
author | Thomas Haller <thaller@redhat.com> | 2017-10-03 15:35:56 +0200 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2017-10-03 15:35:56 +0200 |
commit | 102a58bb623a7df214e3127d70cba114584a211e (patch) | |
tree | 95650c5e4fcd0f3823ec54782b62e79d11f39fd9 | |
parent | b799de281bc01073c31dd2c86171b29c8132441c (diff) | |
download | NetworkManager-102a58bb623a7df214e3127d70cba114584a211e.tar.gz |
contrib/scripts: fix coloring for platform messages in NM-log for old logs
Older logfiles contain
platform: route: adding or updating IPv4 route: 10.1.0
Hightlight that too.
-rwxr-xr-x | contrib/scripts/NM-log | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/scripts/NM-log b/contrib/scripts/NM-log index 885c19d5b0..4ef02c724a 100755 --- a/contrib/scripts/NM-log +++ b/contrib/scripts/NM-log @@ -38,7 +38,7 @@ NM-colorize() { GREP_COLOR='01;31' grep -a --color=always '^\|^\(.* \)\?<\(warn> \|error>\) \[[0-9.]*\]' | \ GREP_COLOR='01;33' grep -a --color=always '^\|^\(.* \)\?<info> \[[0-9.]*\]\( .*\<is starting\>.*$\)\?' | \ GREP_COLOR='01;37' grep -a --color=always '^\|\<platform: signal: .*$' | \ - GREP_COLOR='01;34' grep -a --color=always '^\|\<platform\(-linux\)\?: link: \(add\|adding\|change\|setting\|deleting\) \|\<platform: address: \(deleting\|adding or updating\) IPv. address:\? \|\<platform: route: \([a-z]\+\|new\[0x[0-9A-Za-z]*\]\) \+IPv. route:\? \|\<platform-linux: sysctl: setting ' | \ + GREP_COLOR='01;34' grep -a --color=always '^\|\<platform\(-linux\)\?: link: \(add\|adding\|change\|setting\|deleting\) \|\<platform: address: \(deleting\|adding or updating\) IPv. address:\? \|\<platform: route: \([a-z]\+\|adding or updating\|new\[0x[0-9A-Za-z]*\]\) \+IPv. route:\? \|\<platform-linux: sysctl: setting ' | \ GREP_COLOR='01;35' grep -a --color=always '^\|\<audit: .*$' | \ GREP_COLOR='01;32' grep -a --color=always '^\|\<device (.*): state change: ' else |