1
0
mirror of synced 2024-12-18 02:41:11 +01:00

Provide a name for the loggers

This commit is contained in:
jvoisin 2023-09-08 22:15:00 +02:00
parent abcdf07ef4
commit 73f2a87aa0
2 changed files with 2 additions and 2 deletions

2
mat2
View File

@ -186,7 +186,7 @@ def main() -> int:
args = arg_parser.parse_args() args = arg_parser.parse_args()
if args.verbose: if args.verbose:
logging.getLogger().setLevel(logging.DEBUG) logging.getLogger(__name__).setLevel(logging.DEBUG)
if not args.files: if not args.files:
if args.list: if args.list:

View File

@ -14,7 +14,7 @@ from libmat2 import harmless, video, web, archive
# No need to logging messages, should something go wrong, # No need to logging messages, should something go wrong,
# the testsuite _will_ fail. # the testsuite _will_ fail.
logger = logging.getLogger() logger = logging.getLogger(__name__)
logger.setLevel(logging.FATAL) logger.setLevel(logging.FATAL)