fixed logging changes to be python2 compatible, small change to Pipfile to support possibility of installing to python2, but python3 required for dev

This commit is contained in:
bharnden 2019-09-11 10:59:06 -07:00
parent 0683ea3c22
commit 58471b168b
5 changed files with 14 additions and 93 deletions

View file

@ -17,7 +17,7 @@ def load_logging_config(config_path=None):
when None defaults to /etc/core/logging.conf
:return: nothing
"""
if config_path is None:
if not config_path:
config_path = os.path.join(constants.CORE_CONF_DIR, "logging.conf")
with open(config_path, "r") as log_config_file:
log_config = json.load(log_config_file)