Skip to content
This repository has been archived by the owner on Apr 19, 2023. It is now read-only.

Commit

Permalink
Merge pull request #324 from a3sha2/master
Browse files Browse the repository at this point in the history
Update sentry_setup.py
  • Loading branch information
a3sha2 committed Apr 11, 2020
2 parents 6bd62f6 + 73e3645 commit 0b69844
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/sentry_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,14 @@ def strip_sensitive_data(event, hints):
# modify event here
return event
sentry_sdk.init("https://34b713b3ba2240329b2b671685006e94@sentry.io/1854243",

release=release,environment=enviomnet,server_name=platform.node())

#sentry_sdk.add_breadcrumb(message='xcpengine started', level='info')
#sentry_sdk.capture_message('xcpengine started', level='info')

with sentry_sdk.configure_scope() as scope:
scope.user = {"email": "azeez.adebimpe@outlook.com"}
scope.set_tag('exec_env',platform.system())
free_mem_at_start = round(psutil.virtual_memory().free / 1024**3, 1)
scope.set_tag('free_mem_at_start', free_mem_at_start)
Expand Down

0 comments on commit 0b69844

Please sign in to comment.