aboutsummaryrefslogtreecommitdiff
path: root/discord/opus.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/opus.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/opus.py')
-rw-r--r--discord/opus.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/discord/opus.py b/discord/opus.py
index fcf27a72..0054da4e 100644
--- a/discord/opus.py
+++ b/discord/opus.py
@@ -149,7 +149,7 @@ class OpusError(DiscordException):
def __init__(self, code):
self.code = code
msg = _lib.opus_strerror(self.code).decode('utf-8')
- log.info('"{}" has happened'.format(msg))
+ log.info('"%s" has happened', msg)
super().__init__(msg)
class OpusNotLoaded(DiscordException):