aboutsummaryrefslogtreecommitdiffstats
path: root/bot/exts/fun/latex.py
diff options
context:
space:
mode:
authorGravatar Chris Lovering <[email protected]>2023-11-25 22:02:00 +0000
committerGravatar Chris Lovering <[email protected]>2023-11-25 22:04:09 +0000
commitbbe107b845571b0af449cf3686b5fab8084a3fde (patch)
treea54b562ee258e38bd69ee09672464c00689fd6e2 /bot/exts/fun/latex.py
parentUse 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.py4
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)