diff options
author | 2022-02-24 16:10:47 +0000 | |
---|---|---|
committer | 2022-02-24 17:32:48 +0000 | |
commit | f7dac414b098900b340b2c36b0e69fce6b6c69ba (patch) | |
tree | 206580307cb4c9084e19c80212a3b2f5c98d72bb /botcore/utils/scheduling.py | |
parent | Alter docstrings to look better in autodocs (diff) |
Rename loggers.py to logging.py to allow for more generic utils in future
Diffstat (limited to 'botcore/utils/scheduling.py')
-rw-r--r-- | botcore/utils/scheduling.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/botcore/utils/scheduling.py b/botcore/utils/scheduling.py index d6969302..e2952e6c 100644 --- a/botcore/utils/scheduling.py +++ b/botcore/utils/scheduling.py @@ -7,7 +7,7 @@ import typing from datetime import datetime from functools import partial -from botcore.utils import loggers +from botcore.utils import logging class Scheduler: @@ -36,7 +36,7 @@ class Scheduler: """ self.name = name - self._log = loggers.get_logger(f"{__name__}.{name}") + self._log = logging.get_logger(f"{__name__}.{name}") self._scheduled_tasks: typing.Dict[typing.Hashable, asyncio.Task] = {} def __contains__(self, task_id: typing.Hashable) -> bool: @@ -242,5 +242,5 @@ def _log_task_exception(task: asyncio.Task, *, suppressed_exceptions: typing.Tup exception = task.exception() # Log the exception if one exists. if exception and not isinstance(exception, suppressed_exceptions): - log = loggers.get_logger(__name__) + log = logging.get_logger(__name__) log.error(f"Error in task {task.get_name()} {id(task)}!", exc_info=exception) |