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:
Rapptz
2022-08-15 10:21:36 -04:00
parent 0ec06f0ac5
commit 3802780f77
7 changed files with 20 additions and 20 deletions

View File

@ -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)