Provide a name for the loggers
This commit is contained in:
parent
abcdf07ef4
commit
73f2a87aa0
2
mat2
2
mat2
@ -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:
|
||||||
|
@ -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)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user