Add sentry-sdk for logging
parent
923b6780bd
commit
2a90bad4b2
|
@ -1,6 +1,8 @@
|
||||||
from decouple import config, Csv
|
from decouple import config, Csv
|
||||||
from dj_database_url import parse as db_url
|
from dj_database_url import parse as db_url
|
||||||
from unipath import Path
|
from unipath import Path
|
||||||
|
import sentry_sdk
|
||||||
|
from sentry_sdk.integrations.django import DjangoIntegration
|
||||||
|
|
||||||
|
|
||||||
ROOT = Path(__file__).parent
|
ROOT = Path(__file__).parent
|
||||||
|
@ -203,6 +205,14 @@ LOGGING = {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Sentry
|
||||||
|
SENTRY_ENABLED = config('SENTRY_ENABLED', default=False)
|
||||||
|
if SENTRY_ENABLED:
|
||||||
|
sentry_sdk.init(
|
||||||
|
dsn=config('SENTRY_DSN', default=''),
|
||||||
|
integrations=[DjangoIntegration()]
|
||||||
|
)
|
||||||
|
|
||||||
# Celery
|
# Celery
|
||||||
CELERY_ENABLE_UTC = USE_TZ
|
CELERY_ENABLE_UTC = USE_TZ
|
||||||
CELERY_TIMEZONE = TIME_ZONE
|
CELERY_TIMEZONE = TIME_ZONE
|
||||||
|
|
3
env-dist
3
env-dist
|
@ -10,3 +10,6 @@
|
||||||
|
|
||||||
# Mapbox
|
# Mapbox
|
||||||
# MAPBOX_TOKEN=enter_mapbox_token_here
|
# MAPBOX_TOKEN=enter_mapbox_token_here
|
||||||
|
|
||||||
|
# Sentry
|
||||||
|
# SENTRY_DSN='sentry_dsn'
|
||||||
|
|
|
@ -46,6 +46,7 @@ requests-cache==0.4.13
|
||||||
requests-oauthlib==0.8.0
|
requests-oauthlib==0.8.0
|
||||||
rjsmin==1.0.12
|
rjsmin==1.0.12
|
||||||
satnogsdecoders==0.1
|
satnogsdecoders==0.1
|
||||||
|
sentry-sdk==0.6.2
|
||||||
sgp4==1.4
|
sgp4==1.4
|
||||||
shortuuid==0.5.0
|
shortuuid==0.5.0
|
||||||
simplejson==3.16.0
|
simplejson==3.16.0
|
||||||
|
|
Loading…
Reference in New Issue