Migrate info.py to logging

This commit is contained in:
Nexus 2023-12-05 17:34:04 +00:00
parent 6fbcf85da8
commit 0734af57f3
Signed by: nex
GPG key ID: 0FA334385D0B689F

View file

@ -1,3 +1,5 @@
import logging
import discord import discord
import httpx import httpx
from discord.ext import commands from discord.ext import commands
@ -129,4 +131,4 @@ def setup(bot):
if OAUTH_REDIRECT_URI and OAUTH_ID: if OAUTH_REDIRECT_URI and OAUTH_ID:
bot.add_cog(InfoCog(bot)) bot.add_cog(InfoCog(bot))
else: else:
print("OAUTH_REDIRECT_URI not set, not loading info cog") logging.getLogger("jimmy.cogs.info").warning("OAUTH_REDIRECT_URI not set, not loading info cog")