diff options
Diffstat (limited to 'openstack/common')
| -rw-r--r-- | openstack/common/log.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/openstack/common/log.py b/openstack/common/log.py index b795ee4..c1dde7f 100644 --- a/openstack/common/log.py +++ b/openstack/common/log.py @@ -401,7 +401,8 @@ def _setup_logging_from_conf(product_name): if CONF.log_format: handler.setFormatter(logging.Formatter(fmt=CONF.log_format, datefmt=datefmt)) - handler.setFormatter(LegacyFormatter(datefmt=datefmt)) + else: + handler.setFormatter(LegacyFormatter(datefmt=datefmt)) if CONF.debug: log_root.setLevel(logging.DEBUG) |
