diff options
| author | Rapptz <[email protected]> | 2017-06-09 18:53:24 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2017-06-09 18:53:24 -0400 |
| commit | b06899e7d4658ab732d1579283771f709a7a4bce (patch) | |
| tree | 39c3018e9e7f62711d78f607939346f5d4075deb /discord/state.py | |
| parent | Implement "partial" message events. (diff) | |
| download | discord.py-b06899e7d4658ab732d1579283771f709a7a4bce.tar.xz discord.py-b06899e7d4658ab732d1579283771f709a7a4bce.zip | |
Defer logging formatting until the logger is actually called.
This would cause unnecessary format calls even if you didn't have
logging enabled.
Diffstat (limited to 'discord/state.py')
| -rw-r--r-- | discord/state.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/discord/state.py b/discord/state.py index 67f8f763..7ff05b3b 100644 --- a/discord/state.py +++ b/discord/state.py @@ -265,7 +265,7 @@ class ConnectionState: # call GUILD_SYNC after we're done chunking if not self.is_bot: - log.info('Requesting GUILD_SYNC for %s guilds' % len(self.guilds)) + log.info('Requesting GUILD_SYNC for %s guilds', len(self.guilds)) yield from self.syncer([s.id for s in self.guilds]) except asyncio.CancelledError: pass |