mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-09-06 09:56:09 +00:00
Change a lot of logging INFO calls to be less verbose
Some of the logs were only useful for debug scenarios, so they have been downgraded to DEBUG. Others were in INFO but supposed to be in WARNING so those were upgraded.
This commit is contained in:
@ -122,7 +122,7 @@ signal_ctl: SignalCtl = {
|
||||
|
||||
def _err_lt(result: int, func: Callable, args: List) -> int:
|
||||
if result < OK:
|
||||
_log.info('error has happened in %s', func.__name__)
|
||||
_log.debug('error has happened in %s', func.__name__)
|
||||
raise OpusError(result)
|
||||
return result
|
||||
|
||||
@ -130,7 +130,7 @@ def _err_lt(result: int, func: Callable, args: List) -> int:
|
||||
def _err_ne(result: T, func: Callable, args: List) -> T:
|
||||
ret = args[-1]._obj
|
||||
if ret.value != OK:
|
||||
_log.info('error has happened in %s', func.__name__)
|
||||
_log.debug('error has happened in %s', func.__name__)
|
||||
raise OpusError(ret.value)
|
||||
return result
|
||||
|
||||
@ -291,7 +291,7 @@ class OpusError(DiscordException):
|
||||
def __init__(self, code: int):
|
||||
self.code: int = code
|
||||
msg = _lib.opus_strerror(self.code).decode('utf-8')
|
||||
_log.info('"%s" has happened', msg)
|
||||
_log.debug('"%s" has happened', msg)
|
||||
super().__init__(msg)
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user