mirror of
https://github.com/imcarlost/pidcat-repl.git
synced 2026-08-08 23:17:43 -04:00
Merge pull request #42 from paleozogt/master
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:
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user