Skip to content

Commit

Permalink
🔇 Only logs to Sentry for Android
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreMiras committed May 28, 2020
1 parent 11a1594 commit 97c665a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,8 @@ def configure_sentry(in_debug=False):


if __name__ == '__main__':
# when the -d/--debug flag is set, Kivy sets log level to debug
level = Logger.getEffectiveLevel()
in_debug = level == LOG_LEVELS.get('debug')
# only send Android errors to Sentry
in_debug = platform != "android"
client = configure_sentry(in_debug)
try:
PyWalletApp().run()
Expand Down

0 comments on commit 97c665a

Please sign in to comment.