Skip to content

Commit b8f3fe5

Browse files
authored
Changed error logging in some of the opus logging to log to debug because it was drastically bloating the info logs (#10)
1 parent fa4108a commit b8f3fe5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

discord/opus.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -127,15 +127,15 @@ class DecoderStruct(ctypes.Structure):
127127

128128
def _err_lt(result: int, func: Callable, args: list) -> int:
129129
if result < OK:
130-
_log.info("error has happened in %s", func.__name__)
130+
_log.debug("error has happened in %s", func.__name__)
131131
raise OpusError(result)
132132
return result
133133

134134

135135
def _err_ne(result: T, func: Callable, args: list) -> T:
136136
ret = args[-1]._obj
137137
if ret.value != OK:
138-
_log.info("error has happened in %s", func.__name__)
138+
_log.debug("error has happened in %s", func.__name__)
139139
raise OpusError(ret.value)
140140
return result
141141

@@ -339,7 +339,7 @@ class OpusError(DiscordException):
339339
def __init__(self, code: int):
340340
self.code: int = code
341341
msg = _lib.opus_strerror(self.code).decode("utf-8")
342-
_log.info('"%s" has happened', msg)
342+
_log.debug('"%s" has happened', msg)
343343
super().__init__(msg)
344344

345345

0 commit comments

Comments
 (0)