mirror of
https://github.com/nexy7574/LCC-bot.git
synced 2024-09-19 18:16:34 +01:00
Migrate info.py to logging
This commit is contained in:
parent
6fbcf85da8
commit
0734af57f3
1 changed files with 3 additions and 1 deletions
|
@ -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")
|
||||||
|
|
Loading…
Reference in a new issue