Skip to content

Commit 1da6bf3

Browse files
committed
feat(afk.py): add logging for AFK cog initialization and expiration handler
Add logging statements to provide better visibility into the AFK cog's initialization process and the start of the AFK expiration handler. This enhancement aids in debugging and monitoring by clearly indicating when the AFK cog is initialized and when the expiration handler is started.
1 parent 280448b commit 1da6bf3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/tux/modules/utility/afk.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,9 @@ def __init__(self, bot: Tux) -> None:
3939
The bot instance to attach this cog to.
4040
"""
4141
super().__init__(bot)
42+
logger.info("Initializing AFK cog and starting expiration handler")
4243
self.handle_afk_expiration.start()
44+
logger.debug("AFK expiration handler start() called")
4345

4446
async def cog_unload(self) -> None:
4547
"""Cancel the background task when the cog is unloaded."""

0 commit comments

Comments
 (0)