Skip to content

Commit 26c3b29

Browse files
emit warning when webhook url is missing (#17)
1 parent 02e9ea6 commit 26c3b29

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

modules/logging.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ def __init__(self, bot: core.Bot) -> None:
3838
if url := core.CONFIG["LOGGING"].get("webhook_url"):
3939
self.webhook = discord.Webhook.from_url(url, session=bot.session, client=bot)
4040
else:
41+
bot.log_handler.warning("Not enabling webhook logging due to config key not existing.")
4142
self.webhook = None
4243

4344
async def cog_load(self) -> None:

0 commit comments

Comments
 (0)