🔥 Remove legacy sentry client
This commit is contained in:
1 parent
799548a90b
commit
49870595b0
2 files changed
+1
-18
No files matched your search
+1
-16
@@ -86,7 +86,6 @@ INSTALLED_APPS = [
|
|||||||
"django_extensions",
|
"django_extensions",
|
||||||
"rest_framework",
|
"rest_framework",
|
||||||
"easy_thumbnails",
|
"easy_thumbnails",
|
||||||
"raven.contrib.django.raven_compat",
|
|
||||||
]
|
]
|
||||||
LOCAL_APPS = [
|
LOCAL_APPS = [
|
||||||
"main",
|
"main",
|
||||||
@@ -113,16 +112,12 @@ LOGGING = {
|
|||||||
"disable_existing_loggers": False,
|
"disable_existing_loggers": False,
|
||||||
"root": {
|
"root": {
|
||||||
"level": "INFO",
|
"level": "INFO",
|
||||||
"handlers": ["console", "sentry"],
|
"handlers": ["console"],
|
||||||
},
|
},
|
||||||
"formatters": {
|
"formatters": {
|
||||||
"verbose": {"format": "%(levelname)s %(asctime)s %(module)s %(process)d %(thread)d %(message)s"},
|
"verbose": {"format": "%(levelname)s %(asctime)s %(module)s %(process)d %(thread)d %(message)s"},
|
||||||
},
|
},
|
||||||
"handlers": {
|
"handlers": {
|
||||||
"sentry": {
|
|
||||||
"level": "WARNING",
|
|
||||||
"class": "raven.contrib.django.raven_compat.handlers.SentryHandler",
|
|
||||||
},
|
|
||||||
"console": {
|
"console": {
|
||||||
"level": "DEBUG",
|
"level": "DEBUG",
|
||||||
"class": "logging.StreamHandler",
|
"class": "logging.StreamHandler",
|
||||||
@@ -135,16 +130,6 @@ LOGGING = {
|
|||||||
"handlers": ["console"],
|
"handlers": ["console"],
|
||||||
"propagate": False,
|
"propagate": False,
|
||||||
},
|
},
|
||||||
"raven": {
|
|
||||||
"level": "WARNING",
|
|
||||||
"handlers": ["console"],
|
|
||||||
"propagate": False,
|
|
||||||
},
|
|
||||||
"sentry.errors": {
|
|
||||||
"level": "WARNING",
|
|
||||||
"handlers": ["console"],
|
|
||||||
"propagate": False,
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,8 +1,6 @@
|
|||||||
import os
|
import os
|
||||||
from django.core.wsgi import get_wsgi_application
|
from django.core.wsgi import get_wsgi_application
|
||||||
from raven.contrib.django.middleware.wsgi import Sentry
|
|
||||||
|
|
||||||
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "bbssite.settings")
|
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "bbssite.settings")
|
||||||
|
|
||||||
application = get_wsgi_application()
|
application = get_wsgi_application()
|
||||||
application = Sentry(application)
|
|
||||||
Reference in new issue
Block a user