Remove un-necessary conditional.

This commit is contained in:
Feanil Patel
2018-01-31 10:51:01 -05:00
parent 37ae5e5218
commit 147ea0c12c

View File

@@ -18,7 +18,7 @@ def get_logger_config(log_dir,
syslog_addr=None,
local_loglevel='INFO',
console_loglevel=None,
service_variant=None):
service_variant=""):
"""
@@ -43,11 +43,6 @@ def get_logger_config(log_dir,
if console_loglevel is None or console_loglevel not in LOG_LEVELS:
console_loglevel = 'INFO'
if service_variant is None:
# default to a blank string so that if SERVICE_VARIANT is not
# set we will not log to a sub directory
service_variant = ''
hostname = platform.node().split(".")[0]
syslog_format = ("[service_variant={service_variant}]"
"[%(name)s][env:{logging_env}] %(levelname)s "