Skip to content

Commit

Permalink
Add version information to sentry_sdk context
Browse files Browse the repository at this point in the history
  • Loading branch information
Ahsoka committed Jul 31, 2021
1 parent 3819845 commit 90aef50
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion beskar/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,10 @@
'version': platform.version(),
'theme': darkdetect.theme()
}

sentry_sdk.set_context('os', sys_info)

sentry_sdk.set_context('app', {'app_version': __version__})

def before_breadcrumbs(crumb, hint):
if crumb['message'] == 'The following error occured:':
return None
Expand Down

0 comments on commit 90aef50

Please sign in to comment.