Skip to content

Commit

Permalink
Stricter matching: was swallowing some error message data
Browse files Browse the repository at this point in the history
  • Loading branch information
sebbASF committed Feb 18, 2025
1 parent 22a8e86 commit 3a211f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/whimsy/logparser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ def parse_error_logs(d = ERROR_LOG_DIR, logs = {})
# [..date..] [proxy:error] [pid ...] [client ...] AH00898: Error during SSL Handshake with remote server returned by /board/agenda/websocket/
# [..date..] [proxy:error] [pid ...] (20014)Internal error (specific information not available): [client ...] AH01084: pass request body failed to 127.0.0.1:34234 (localhost)
def parse_whimsy_error(f, logs = {})
r = Regexp.new('\[(?<errdate>[^\]]*)\] \[[\w_]+:error\] \[.+?\] (.+: )?\[.+?\] (?<errline>.+)')
r = Regexp.new('\[(?<errdate>[^\]]*)\] \[[\w_]+:error\] \[.+?\] (.+: )?\[client .+?\] (?<errline>.+)')
ignored = Regexp.union(IGNORE_TRACEBACKS)
read_logz(f).lines.each do |l|
r.match(l) do |m|
Expand Down

0 comments on commit 3a211f0

Please sign in to comment.