making pidcat robust to when the loglevel isn't one of VDIWEF (!?)

This commit is contained in:
Aaron Simmons
2014-01-03 15:11:09 -07:00
parent 4eb4e68392
commit 5217c75ec0
+5 -3
View File
@@ -223,7 +223,7 @@ while adb.poll() is None:
if owner not in pids:
continue
if LOG_LEVELS_MAP[level] < min_level:
if level in LOG_LEVELS_MAP and LOG_LEVELS_MAP[level] < min_level:
continue
linebuf = ''
@@ -240,8 +240,10 @@ while adb.poll() is None:
linebuf += ' '
# write out level colored edge
if level not in TAGTYPES: break
linebuf += TAGTYPES[level]
if level in TAGTYPES:
linebuf += TAGTYPES[level]
else:
linebuf += ' ' + level + ' '
linebuf += ' '
# format tag message using rules