mirror of https://github.com/borgbase/vorta
Add current version to Sentry log.
This commit is contained in:
parent
85708995ff
commit
7220f6bea7
|
@ -37,7 +37,6 @@ install_requires =
|
|||
peewee
|
||||
python-dateutil
|
||||
keyring
|
||||
borgbackup
|
||||
apscheduler
|
||||
|
||||
[options.extras_require]
|
||||
|
|
|
@ -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'))
|
||||
|
|
Loading…
Reference in New Issue