Add current version to Sentry log.

This commit is contained in:
Manu 2018-11-03 00:33:37 +08:00
parent 85708995ff
commit 7220f6bea7
2 changed files with 5 additions and 3 deletions

View File

@ -37,7 +37,6 @@ install_requires =
peewee
python-dateutil
keyring
borgbackup
apscheduler
[options.extras_require]

View File

@ -5,13 +5,16 @@ import peewee
import vorta.models
from vorta.application import VortaApp
from vorta.config import SETTINGS_DIR
from vorta._version import __version__
def main():
# Send crashes to Sentry
if not os.environ.get('NO_SENTRY'):
if not os.environ.get('NO_SENTRY', False):
import sentry_sdk
sentry_sdk.init("https://a4a23df3e44743d5b5c5f06417a9a809@sentry.io/1311799")
sentry_sdk.init("https://a4a23df3e44743d5b5c5f06417a9a809@sentry.io/1311799",
release=__version__)
# Init database
sqlite_db = peewee.SqliteDatabase(os.path.join(SETTINGS_DIR, 'settings.db'))