mirror of
https://github.com/rocky-linux/createhdds.git
synced 2024-12-22 01:58:30 +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:
|
||||
log_level = getattr(logging, args.log_level.upper(), None)
|
||||
if not isinstance(log_level, int):
|
||||
log_level = logging.WARNING
|
||||
log_level = logging.INFO
|
||||
else:
|
||||
log_level = logging.WARNING
|
||||
log_level = logging.INFO
|
||||
if args.log_file:
|
||||
logging.basicConfig(format="%(levelname)s:%(name)s:%(asctime)s:%(message)s",
|
||||
filename=args.log_file, level=log_level)
|
||||
|
Loading…
Reference in New Issue
Block a user