diff options
Diffstat (limited to 'botcore')
-rw-r--r-- | botcore/utils/__init__.py | 4 | ||||
-rw-r--r-- | botcore/utils/channel.py | 4 | ||||
-rw-r--r-- | botcore/utils/logging.py (renamed from botcore/utils/loggers.py) | 0 | ||||
-rw-r--r-- | botcore/utils/members.py | 4 | ||||
-rw-r--r-- | botcore/utils/scheduling.py | 6 |
5 files changed, 9 insertions, 9 deletions
diff --git a/botcore/utils/__init__.py b/botcore/utils/__init__.py index 554e8ad1..71354334 100644 --- a/botcore/utils/__init__.py +++ b/botcore/utils/__init__.py @@ -1,12 +1,12 @@ """Useful utilities and tools for discord bot development.""" -from botcore.utils import (caching, channel, extensions, loggers, members, regex, scheduling) +from botcore.utils import (caching, channel, extensions, logging, members, regex, scheduling) __all__ = [ caching, channel, extensions, - loggers, + logging, members, regex, scheduling, diff --git a/botcore/utils/channel.py b/botcore/utils/channel.py index 6a630c94..db155911 100644 --- a/botcore/utils/channel.py +++ b/botcore/utils/channel.py @@ -3,9 +3,9 @@ import discord from discord.ext.commands import Bot -from botcore.utils import loggers +from botcore.utils import logging -log = loggers.get_logger(__name__) +log = logging.get_logger(__name__) def is_in_category(channel: discord.TextChannel, category_id: int) -> bool: diff --git a/botcore/utils/loggers.py b/botcore/utils/logging.py index 740c20d4..740c20d4 100644 --- a/botcore/utils/loggers.py +++ b/botcore/utils/logging.py diff --git a/botcore/utils/members.py b/botcore/utils/members.py index e7b31342..e89b4618 100644 --- a/botcore/utils/members.py +++ b/botcore/utils/members.py @@ -4,9 +4,9 @@ import typing import discord -from botcore.utils import loggers +from botcore.utils import logging -log = loggers.get_logger(__name__) +log = logging.get_logger(__name__) async def get_or_fetch_member(guild: discord.Guild, member_id: int) -> typing.Optional[discord.Member]: 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) |