mirror of
https://pagure.io/fedora-qa/createhdds.git
synced 2024-11-21 23:03:08 +00:00
change default logging level to INFO
Differential Revision: https://phab.qadevel.cloud.fedoraproject.org/D480
This commit is contained in:
parent
2229e8d3e9
commit
ba512e93cd
@ -367,9 +367,9 @@ if __name__ == "__main__":
|
|||||||
if args.log_level:
|
if args.log_level:
|
||||||
log_level = getattr(logging, args.log_level.upper(), None)
|
log_level = getattr(logging, args.log_level.upper(), None)
|
||||||
if not isinstance(log_level, int):
|
if not isinstance(log_level, int):
|
||||||
log_level = logging.WARNING
|
log_level = logging.INFO
|
||||||
else:
|
else:
|
||||||
log_level = logging.WARNING
|
log_level = logging.INFO
|
||||||
if args.log_file:
|
if args.log_file:
|
||||||
logging.basicConfig(format="%(levelname)s:%(name)s:%(asctime)s:%(message)s",
|
logging.basicConfig(format="%(levelname)s:%(name)s:%(asctime)s:%(message)s",
|
||||||
filename=args.log_file, level=log_level)
|
filename=args.log_file, level=log_level)
|
||||||
|
Loading…
Reference in New Issue
Block a user