Commit 2bc81d8e authored by Trevor Cappallo's avatar Trevor Cappallo
Browse files

fix load config

parent c5d54fa1
......@@ -215,11 +215,11 @@ 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)
else:
logging.debug("Loading logging config from: %s", config_file)
logging.info("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:
if key in config and config[val] is None:
logging.debug("- setting option from file: %s --> %s", key, val)
config[key] = val
# Set reasonable defaults for remaining Nones.
......
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