aboutsummaryrefslogtreecommitdiff
path: root/discord/state.py
diff options
context:
space:
mode:
authorRapptz <[email protected]>2017-06-09 18:53:24 -0400
committerRapptz <[email protected]>2017-06-09 18:53:24 -0400
commitb06899e7d4658ab732d1579283771f709a7a4bce (patch)
tree39c3018e9e7f62711d78f607939346f5d4075deb /discord/state.py
parentImplement "partial" message events. (diff)
downloaddiscord.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.py2
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