File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed
Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -110,14 +110,19 @@ def get_file_inode(filepath):
110110
111111
112112def parse_log_line (line ):
113+ # Universal ignore for specific squid error entries (apply regardless of LOG_FORMAT)
114+ try :
115+ line_lower = line .lower () if isinstance (line , str ) else ""
116+ if "error:transaction-end-before-headers" in line_lower :
117+ return None
118+ except Exception :
119+ pass
120+
113121 if LOG_FORMAT == "DEFAULT" :
114122 return parse_log_line_default (line )
115123
116124 # DETAILED (current behavior)
117- if (
118- "cache_object://" in line
119- or "error:transaction-end-before-headers" in line .lower ()
120- ):
125+ if "cache_object://" in line :
121126 return None
122127 if "|" in line :
123128 return parse_log_line_pipe_format (line )
You can’t perform that action at this time.
0 commit comments