1
0
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:
Jan Sedlák 2015-07-29 14:31:05 +02:00
parent 2229e8d3e9
commit ba512e93cd

View File

@ -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)