diff options
Diffstat (limited to 'bot/exts/core/internal_eval')
| -rw-r--r-- | bot/exts/core/internal_eval/_helpers.py | 5 | ||||
| -rw-r--r-- | bot/exts/core/internal_eval/_internal_eval.py | 4 | 
2 files changed, 5 insertions, 4 deletions
diff --git a/bot/exts/core/internal_eval/_helpers.py b/bot/exts/core/internal_eval/_helpers.py index 30c4b11c..766f1160 100644 --- a/bot/exts/core/internal_eval/_helpers.py +++ b/bot/exts/core/internal_eval/_helpers.py @@ -4,13 +4,14 @@ import contextlib  import functools  import inspect  import io -import logging  import sys  import traceback  import types  from typing import Any -log = logging.getLogger(__name__) +from pydis_core.utils.logging import get_logger + +log = get_logger(__name__)  # A type alias to annotate the tuples returned from `sys.exc_info()`  ExcInfo = tuple[type[Exception], Exception, types.TracebackType] diff --git a/bot/exts/core/internal_eval/_internal_eval.py b/bot/exts/core/internal_eval/_internal_eval.py index 1ae3c043..39ce558a 100644 --- a/bot/exts/core/internal_eval/_internal_eval.py +++ b/bot/exts/core/internal_eval/_internal_eval.py @@ -1,9 +1,9 @@ -import logging  import re  import textwrap  import discord  from discord.ext import commands +from pydis_core.utils.logging import get_logger  from bot.bot import Bot  from bot.constants import Client, Roles @@ -13,7 +13,7 @@ from ._helpers import EvalContext  __all__ = ["InternalEval"] -log = logging.getLogger(__name__) +log = get_logger(__name__)  FORMATTED_CODE_REGEX = re.compile(      r"(?P<delim>(?P<block>```)|``?)"        # code delimiter: 1-3 backticks; (?P=block) only matches if it's a block  |