Skip to content

Commit

Permalink
Support LoggerAdapter in TimingLogger
Browse files Browse the repository at this point in the history
  • Loading branch information
soxofaan committed Aug 30, 2023
1 parent 922abec commit fd6d9f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openeo/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,7 @@ def __init__(self, title: str = "Timing", logger: Union[logging.Logger, str, Cal
self.title = title
if isinstance(logger, str):
logger = logging.getLogger(logger)
if isinstance(logger, logging.Logger):
if isinstance(logger, (logging.Logger, logging.LoggerAdapter)):
self._log = logger.info
elif callable(logger):
self._log = logger
Expand Down

0 comments on commit fd6d9f6

Please sign in to comment.