From b06899e7d4658ab732d1579283771f709a7a4bce Mon Sep 17 00:00:00 2001 From: Rapptz Date: Fri, 9 Jun 2017 18:53:24 -0400 Subject: Defer logging formatting until the logger is actually called. This would cause unnecessary format calls even if you didn't have logging enabled. --- discord/state.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'discord/state.py') 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 -- cgit v1.2.3