diff options
author | 2021-04-11 11:36:56 -0400 | |
---|---|---|
committer | 2021-04-11 11:36:56 -0400 | |
commit | 2cc2a2e618ed019de00054c768613e3e6ba2470c (patch) | |
tree | 36d3f51729250f01953df421f81759ee0c1949b1 /bot | |
parent | Correct prefix usage in a doctstring (diff) |
Correct logger name
Changed the initialization of the logging to pull dynamically
so it can actually log correctly.
Diffstat (limited to 'bot')
-rw-r--r-- | bot/exts/internal_eval/_helpers.py | 2 | ||||
-rw-r--r-- | bot/exts/internal_eval/_internal_eval.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/bot/exts/internal_eval/_helpers.py b/bot/exts/internal_eval/_helpers.py index 8b991d98..bd36520d 100644 --- a/bot/exts/internal_eval/_helpers.py +++ b/bot/exts/internal_eval/_helpers.py @@ -11,7 +11,7 @@ import types import typing -log = logging.getLogger("rattlesnake.exts.admin_tools.internal_eval") +log = logging.getLogger(__name__) # A type alias to annotate the tuples returned from `sys.exc_info()` ExcInfo = typing.Tuple[typing.Type[Exception], Exception, types.TracebackType] diff --git a/bot/exts/internal_eval/_internal_eval.py b/bot/exts/internal_eval/_internal_eval.py index ee438724..198c1312 100644 --- a/bot/exts/internal_eval/_internal_eval.py +++ b/bot/exts/internal_eval/_internal_eval.py @@ -13,7 +13,7 @@ from ._helpers import EvalContext __all__ = ["InternalEval"] -log = logging.getLogger("rattlesnake.exts.admin_tools.internal_eval") +log = logging.getLogger(__name__) CODEBLOCK_REGEX = re.compile(r"(^```(py(thon)?)?\n)|(```$)") |