diff options
author | 2023-11-25 22:02:00 +0000 | |
---|---|---|
committer | 2023-11-25 22:04:09 +0000 | |
commit | bbe107b845571b0af449cf3686b5fab8084a3fde (patch) | |
tree | a54b562ee258e38bd69ee09672464c00689fd6e2 /bot/exts/fun/latex.py | |
parent | Use new logging util from bot-core (diff) |
Always use the get_logger func from bot-core
Diffstat (limited to 'bot/exts/fun/latex.py')
-rw-r--r-- | bot/exts/fun/latex.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bot/exts/fun/latex.py b/bot/exts/fun/latex.py index b7bd708e..cd7dba11 100644 --- a/bot/exts/fun/latex.py +++ b/bot/exts/fun/latex.py @@ -1,5 +1,4 @@ import hashlib -import logging import os import re import string @@ -11,12 +10,13 @@ import discord from PIL import Image from aiohttp import client_exceptions, web from discord.ext import commands +from pydis_core.utils.logging import get_logger from bot.bot import Bot from bot.constants import Channels, WHITELISTED_CHANNELS from bot.utils.decorators import whitelist_override -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 r"(?(block)(?:(?P<lang>[a-z]+)\n)?)" # if we're in a block, match optional language (only letters plus newline) |