Skip to content

Commit

Permalink
Add more logutil patterns.
Browse files Browse the repository at this point in the history
  • Loading branch information
TomiBelan committed Jan 17, 2019
1 parent db9ecd6 commit 2aed7a8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions votrfront/logutil.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@
def classify(line):
if "OSError: failed to write data" in line.content:
return 'OSError'
if ("OSError: Apache/mod_wsgi failed to write response data: Broken pipe"
in line.content):
return 'OSError'
if "base.ps.PSException: Nie je connection" in line.content:
return 'SQLError'
if "java.sql.SQLException: Connection is not valid" in line.content:
Expand All @@ -35,6 +38,9 @@ def classify(line):
return 'HTTPError'
if "failed with LoggedOutError" in line.content:
return 'LoggedOutError'
if ("zapis_plan_vyhladaj" in line.content and
"AIS did not return all table rows" in line.content):
return 'open issue121'
return 'open'


Expand Down

0 comments on commit 2aed7a8

Please sign in to comment.