Only set the log level on our own logger.

Otherwise debug logging will be completely swamped with logs from other
libraries. Maybe that's nice too at some point, but that would need another
CLI arg.
This commit is contained in:
Sybren A. Stüvel 2018-03-09 16:28:31 +01:00
parent 1a37cb5ba1
commit 53a2ca4373

View File

@ -66,6 +66,9 @@ def config_logging(args):
"""Configures the logging system based on CLI arguments.""" """Configures the logging system based on CLI arguments."""
logging.basicConfig( logging.basicConfig(
level=args.loglevel, level=logging.WARNING,
format='%(asctime)-15s %(levelname)8s %(name)-40s %(message)s', format='%(asctime)-15s %(levelname)8s %(name)-40s %(message)s',
) )
# Only set the log level on our own logger. Otherwise
# debug logging will be completely swamped.
logging.getLogger('blender_asset_tracer').setLevel(args.loglevel)