diff --git a/config/logger.conf b/config/logger.conf index 366156e1f2..61b69ffaa5 100644 --- a/config/logger.conf +++ b/config/logger.conf @@ -3,7 +3,7 @@ "disable_existing_loggers": true, "formatters": { "brief": { - "format": "[%(asctime)s] - %(message)s", + "format": "[%(levelname)s %(asctime)s] - %(message)s", "datefmt": "%Y-%m-%d %H:%M" }, "precise": { diff --git a/tests/functional/analyze_and_parse/test_analyze_and_parse.py b/tests/functional/analyze_and_parse/test_analyze_and_parse.py index 611fbb414a..9850193f8a 100644 --- a/tests/functional/analyze_and_parse/test_analyze_and_parse.py +++ b/tests/functional/analyze_and_parse/test_analyze_and_parse.py @@ -105,7 +105,8 @@ def __check_one_file(self, path, mode): "[] - Skipping input file"] for line in output: # replace timestamps - line = re.sub(r'\[\d{4}-\d{2}-\d{2} \d{2}:\d{2}\]', '[]', line) + line = re.sub(r'\[\w+ \d{4}-\d{2}-\d{2} \d{2}:\d{2}\]', + '[]', line) if not any([line.startswith(prefix) for prefix in skip_prefixes]): post_processed_output.append(line)