From f7dac414b098900b340b2c36b0e69fce6b6c69ba Mon Sep 17 00:00:00 2001 From: Chris Lovering Date: Thu, 24 Feb 2022 16:10:47 +0000 Subject: Rename loggers.py to logging.py to allow for more generic utils in future --- botcore/utils/scheduling.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'botcore/utils/scheduling.py') 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) -- cgit v1.2.3