Thomas Vachuska
Committed by Gerrit Code Review

Added a few more short-hand aliases for checking logs for errors.

Change-Id: Iecb12af748c876a6e6be276eb8da1468047b2e90
...@@ -52,8 +52,8 @@ alias ok='onos-karaf' ...@@ -52,8 +52,8 @@ alias ok='onos-karaf'
52 alias ot='onos-test' 52 alias ot='onos-test'
53 alias ol='onos-log' 53 alias ol='onos-log'
54 alias ow='onos-watch' 54 alias ow='onos-watch'
55 +alias ocl='onos-check-logs'
55 alias oi='setPrimaryInstance' 56 alias oi='setPrimaryInstance'
56 -# alias go='ob && ot && onos -w'
57 alias pub='onos-push-update-bundle' 57 alias pub='onos-push-update-bundle'
58 58
59 # Short-hand for tailing and searching the ONOS (karaf) log 59 # Short-hand for tailing and searching the ONOS (karaf) log
...@@ -65,11 +65,13 @@ function filterLocalLog { ...@@ -65,11 +65,13 @@ function filterLocalLog {
65 tl | grep --colour=always -E -e "${1-org.onlab|org.onosproject}" 65 tl | grep --colour=always -E -e "${1-org.onlab|org.onosproject}"
66 } 66 }
67 alias tlo='filterLocalLog' 67 alias tlo='filterLocalLog'
68 +alias tle='olo "ERROR|WARN|Exception|Error"'
68 69
69 function filterLog { 70 function filterLog {
70 ol | grep --colour=always -E -e "${1-org.onlab|org.onosproject}" 71 ol | grep --colour=always -E -e "${1-org.onlab|org.onosproject}"
71 } 72 }
72 alias olo='filterLog' 73 alias olo='filterLog'
74 +alias ole='olo "ERROR|WARN|Exception|Error"'
73 75
74 # Pretty-print JSON output 76 # Pretty-print JSON output
75 alias pp='python -m json.tool' 77 alias pp='python -m json.tool'
......