mirror of
https://github.com/imcarlost/pidcat-repl.git
synced 2026-08-08 23:17:43 -04:00
making pidcat robust to when the loglevel isn't one of VDIWEF (!?)
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user