From 73f2a87aa0f99fb4816f2b4d86dae11c4980b1a2 Mon Sep 17 00:00:00 2001 From: jvoisin Date: Fri, 8 Sep 2023 22:15:00 +0200 Subject: [PATCH] Provide a name for the loggers --- mat2 | 2 +- tests/test_corrupted_files.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mat2 b/mat2 index e22512c..e970d98 100755 --- a/mat2 +++ b/mat2 @@ -186,7 +186,7 @@ def main() -> int: args = arg_parser.parse_args() if args.verbose: - logging.getLogger().setLevel(logging.DEBUG) + logging.getLogger(__name__).setLevel(logging.DEBUG) if not args.files: if args.list: diff --git a/tests/test_corrupted_files.py b/tests/test_corrupted_files.py index 2adf42e..639145c 100644 --- a/tests/test_corrupted_files.py +++ b/tests/test_corrupted_files.py @@ -14,7 +14,7 @@ from libmat2 import harmless, video, web, archive # No need to logging messages, should something go wrong, # the testsuite _will_ fail. -logger = logging.getLogger() +logger = logging.getLogger(__name__) logger.setLevel(logging.FATAL)