Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
Signed-off-by: Tyler Gu <[email protected]>
  • Loading branch information
tylergu committed Nov 15, 2023
1 parent 9707485 commit ec8fbf9
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions acto/parse_log/parse_log.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,12 @@ def parse_log(line: str) -> dict:
del log_line['severity']
log_line['level'] = log_line['level'].lower()
except Exception as e:
logger.debug(f"parse_log() cannot parse line {line} due to {e}")
pass
if 'error' in line.lower():
log_line['level'] = 'error'
log_line['msg'] = line
else:
logger.debug(f"parse_log() cannot parse line {line} due to {e}")
pass

return log_line

Expand Down

0 comments on commit ec8fbf9

Please sign in to comment.