Explorar el Código

refactor: streamline error logging in parse_log_line_space_format function

Manuel hace 1 año
padre
commit
aed20f989a
Se han modificado 1 ficheros con 1 adiciones y 3 borrados
  1. 1 3
      parsers/log.py

+ 1 - 3
parsers/log.py

@@ -151,9 +151,7 @@ def parse_log_line_space_format(line):
             "is_denied": "TCP_DENIED" in line,
             "is_denied": "TCP_DENIED" in line,
         }
         }
     except (IndexError, ValueError) as e:
     except (IndexError, ValueError) as e:
-        logger.error(
-            f"Error parsing line with space format: {line.strip()} - {e}"
-        )
+        logger.error(f"Error parsing line with space format: {line.strip()} - {e}")
         return None
         return None