Skip to content

Commit 61abfa9

Browse files
committed
Log when waiting for a guild before loading extensions
1 parent 1370871 commit 61abfa9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pydis_core/_bot.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,10 @@ def _connect_statsd(
119119

120120
async def _load_extensions(self, module: types.ModuleType) -> None:
121121
"""Load all the extensions within the given module and save them to ``self.all_extensions``."""
122+
log.info("Waiting for guild %d to be avialable before loading extensions.", self.guild_id)
123+
122124
await self.wait_until_guild_available()
125+
log.info("Loading extensions...")
123126
self.all_extensions = walk_extensions(module)
124127

125128
for extension in self.all_extensions:

0 commit comments

Comments
 (0)