diff options
| author | Hornwitser <[email protected]> | 2018-07-31 18:19:43 +0200 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2018-11-24 22:17:58 -0500 |
| commit | 34fd266cf9e743d72603c9a73f3fff29fcb9d6e8 (patch) | |
| tree | 50501988576635df4203b9f7bb951ac07073f20e /discord/opus.py | |
| parent | [lint]Â Simplyfy util.valid_icon_size (diff) | |
| download | discord.py-34fd266cf9e743d72603c9a73f3fff29fcb9d6e8.tar.xz discord.py-34fd266cf9e743d72603c9a73f3fff29fcb9d6e8.zip | |
[lint] Do log formating lazily
Convert log("fmt" % args) to log("fmt", args) as the latter is lazy and
does not do the formating if the string is never logged.
Diffstat (limited to 'discord/opus.py')
| -rw-r--r-- | discord/opus.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/discord/opus.py b/discord/opus.py index 36a178a7..175867cd 100644 --- a/discord/opus.py +++ b/discord/opus.py @@ -44,14 +44,14 @@ EncoderStructPtr = ctypes.POINTER(EncoderStruct) def _err_lt(result, func, args): if result < 0: - log.info('error has happened in {0.__name__}'.format(func)) + log.info('error has happened in %s', func.__name__) raise OpusError(result) return result def _err_ne(result, func, args): ret = args[-1]._obj if ret.value != 0: - log.info('error has happened in {0.__name__}'.format(func)) + log.info('error has happened in %s', func.__name__) raise OpusError(ret.value) return result |