Commit c5d54fa1 authored by Trevor Cappallo's avatar Trevor Cappallo
Browse files

log info for config file

parent d0b1391b
......@@ -215,10 +215,12 @@ def setup(config_file=None, logger_name=None, log_filename=None, log_root_dir=No
if not os.path.exists(config_file):
logging.warn("Could not find logging config file: %s", config_file)
logging.debug("Loading logging config from: %s", config_file)
with open(config_file, 'r') as f:
loaded_config = json.load(f)
for key, val in loaded_config.items():
if key in config and val is None:
logging.debug("- setting option from file: %s --> %s", key, val)
config[key] = val
# Set reasonable defaults for remaining Nones.
if config['log_filename'] is None:
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment