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