Skip to content

Commit 89fb498

Browse files
authored
Merge pull request #17 from emlun/issue-16-config-root-logger
Fix type of first use_cd_logging_formatter argument in config_root_logger
2 parents 6c36c51 + aee9964 commit 89fb498

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

json_logging/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,9 @@ def config_root_logger():
8181
_logger.debug("Update root logger to using JSONLogFormatter")
8282
if len(logging.root.handlers) > 0:
8383
if _current_framework is not None or _current_framework != '-':
84-
util.use_cf_logging_formatter(logging.root, JSONLogWebFormatter)
84+
util.use_cf_logging_formatter([logging.root], JSONLogWebFormatter)
8585
else:
86-
util.use_cf_logging_formatter(logging.root, JSONLogFormatter)
86+
util.use_cf_logging_formatter([logging.root], JSONLogFormatter)
8787
# remove all handlers for request logging
8888
request_logger = _current_framework['app_request_instrumentation_configurator']().get_request_logger()
8989
if request_logger:

0 commit comments

Comments
 (0)