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
+4 -2
View File
@@ -223,7 +223,7 @@ while adb.poll() is None:
if owner not in pids: if owner not in pids:
continue continue
if LOG_LEVELS_MAP[level] < min_level: if level in LOG_LEVELS_MAP and LOG_LEVELS_MAP[level] < min_level:
continue continue
linebuf = '' linebuf = ''
@@ -240,8 +240,10 @@ while adb.poll() is None:
linebuf += ' ' linebuf += ' '
# write out level colored edge # write out level colored edge
if level not in TAGTYPES: break if level in TAGTYPES:
linebuf += TAGTYPES[level] linebuf += TAGTYPES[level]
else:
linebuf += ' ' + level + ' '
linebuf += ' ' linebuf += ' '
# format tag message using rules # format tag message using rules