Skip to content

Commit

Permalink
Add stacktrace to rollbar
Browse files Browse the repository at this point in the history
  • Loading branch information
zim514 committed Apr 13, 2024
1 parent 5b4a07d commit 9da53b7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion script.service.hue/addon.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<addon id="script.service.hue" name="Hue Service" provider-name="zim514" version="2.0.2">
<addon id="script.service.hue" name="Hue Service" provider-name="zim514" version="2.0.3">
<requires>
<import addon="xbmc.python" version="3.0.0"/>
<import addon="script.module.requests" version="2.27.1"/>
Expand Down
4 changes: 2 additions & 2 deletions script.service.hue/resources/lib/reporting.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@ def _report_error(level="critical", error="", exc="", logging=False):
'platform': platform.system(),
'kodi': KODIVERSION,
'error': error,
'exc': exc
'exc': traceback.format_exc()
}
rollbar.init(ROLLBAR_API_KEY, capture_ip=False, code_version="v" + ADDONVERSION, root=ADDONPATH, scrub_fields='bridgeUser, bridgeIP, bridge_user, bridge_ip, server.host', environment=env)
rollbar.init(ROLLBAR_API_KEY, capture_ip=False, code_version="v" + ADDONVERSION, root=ADDONPATH, scrub_fields='bridgeUser, bridgeIP, bridge_user, bridge_ip, server.host', environment=env, handler="thread")

Check warning on line 54 in script.service.hue/resources/lib/reporting.py

View workflow job for this annotation

GitHub Actions / Qodana for Python

Line is longer than allowed by code style

Line is longer than allowed by code style (\> 120 columns)
if logging:
rollbar.report_message(exc, extra_data=data, level=level)
else:
Expand Down

0 comments on commit 9da53b7

Please sign in to comment.