From 0c283a166eae6bc5f20abd6104c740b66723dd15 Mon Sep 17 00:00:00 2001 From: Andreas Motl Date: Mon, 30 Oct 2023 06:35:05 +0100 Subject: [PATCH] Chore: Adjust logging --- pueblo/util/logging.py | 4 ++-- pyproject.toml | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/pueblo/util/logging.py b/pueblo/util/logging.py index 490b4d8..3cbfa35 100644 --- a/pueblo/util/logging.py +++ b/pueblo/util/logging.py @@ -12,7 +12,7 @@ def setup_logging(level=logging.INFO, verbose: bool = False): def setup_logging_standard(level=logging.INFO, verbose: bool = False): - log_format = "%(asctime)-15s [%(name)-35s] %(levelname)-8s: %(message)s" + log_format = "%(asctime)-15s [%(name)-26s] %(levelname)-8s: %(message)s" logging.basicConfig(format=log_format, stream=sys.stderr, level=level) @@ -21,7 +21,7 @@ def setup_logging_colorlog(level=logging.INFO, verbose: bool = False): from colorlog.escape_codes import escape_codes reset = escape_codes["reset"] - log_format = f"%(asctime)-15s [%(name)-36s] %(log_color)s%(levelname)-8s:{reset} %(message)s" + log_format = f"%(asctime)-15s [%(name)-26s] %(log_color)s%(levelname)-8s:{reset} %(message)s" handler = colorlog.StreamHandler() handler.setFormatter(colorlog.ColoredFormatter(log_format)) diff --git a/pyproject.toml b/pyproject.toml index a0a8ae3..4518d66 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -128,6 +128,7 @@ minversion = "2.0" addopts = """ -rfEX -p pytester --strict-markers --verbosity=3 --cov --cov-report=term-missing --cov-report=xml + --capture=no """ log_level = "DEBUG" log_cli_level = "DEBUG"