mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2025-12-07 23:53:18 +00:00
metric loggin throttling
This commit is contained in:
parent
ea4059b6d0
commit
ca6d90969d
5 changed files with 23 additions and 18 deletions
|
|
@ -30,7 +30,7 @@ def catch_except(errors=(Exception, ), default_value=False):
|
|||
return func(*args, **kwargs)
|
||||
except errors as error:
|
||||
errStrings = ga.formatException()
|
||||
ga.sendEventData("Exception", errStrings[0], errStrings[1])
|
||||
ga.sendEventData("Exception", errStrings[0], errStrings[1], True)
|
||||
log.exception(error)
|
||||
log.error("function: %s \n args: %s \n kwargs: %s",
|
||||
func.__name__, args, kwargs)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue