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)