ui: decrease amount of logging for each debug level

This commit is contained in:
Peter F. Patel-Schneider 2022-01-03 14:58:25 -05:00
parent 629afbd812
commit 69b411fc27
1 changed files with 1 additions and 1 deletions

View File

@ -102,7 +102,7 @@ def _parse_arguments():
import logging import logging
if args.debug > 0: if args.debug > 0:
log_level = logging.WARNING - 10 * args.debug log_level = logging.ERROR - 10 * args.debug
log_format = '%(asctime)s,%(msecs)03d %(levelname)8s [%(threadName)s] %(name)s: %(message)s' log_format = '%(asctime)s,%(msecs)03d %(levelname)8s [%(threadName)s] %(name)s: %(message)s'
logging.basicConfig(level=max(log_level, logging.DEBUG), format=log_format, datefmt='%H:%M:%S') logging.basicConfig(level=max(log_level, logging.DEBUG), format=log_format, datefmt='%H:%M:%S')
else: else: