misc: remove support for sentry (#35566)
This commit is contained in:
parent
7728071795
commit
ffaa4e2977
|
@ -12,7 +12,6 @@ Depends: ${misc:Depends},
|
|||
python-django (>= 1:1.11),
|
||||
python-celery (>= 3.1.13),
|
||||
python-requests,
|
||||
python-raven,
|
||||
python-graypy,
|
||||
python-apt,
|
||||
python-memcache,
|
||||
|
@ -33,7 +32,6 @@ Depends: ${misc:Depends},
|
|||
python3-django (>= 1:1.11),
|
||||
python3-celery (>= 3.1.13),
|
||||
python3-requests,
|
||||
python3-raven,
|
||||
python3-graypy,
|
||||
python3-apt,
|
||||
python3-memcache,
|
||||
|
|
|
@ -90,10 +90,6 @@ LOGGING = {
|
|||
'class': 'hobo.multitenant.log.AdminEmailHandler',
|
||||
'include_html': True,
|
||||
},
|
||||
'sentry': {
|
||||
'level': 'ERROR',
|
||||
'class': 'raven.contrib.django.raven_compat.handlers.SentryHandler',
|
||||
},
|
||||
},
|
||||
'loggers': {
|
||||
'django.db': {
|
||||
|
@ -132,12 +128,6 @@ LOGGING = {
|
|||
'level': 'INFO',
|
||||
'propagate': True,
|
||||
},
|
||||
# log sentry failures to syslog
|
||||
'sentry.errors': {
|
||||
'handlers': ['syslog'],
|
||||
'level': 'ERROR',
|
||||
'propagate': False,
|
||||
},
|
||||
# lasso has the bad habit of logging everything as errors
|
||||
'Lasso': {
|
||||
'filters': ['force_debug'],
|
||||
|
@ -157,7 +147,7 @@ LOGGING = {
|
|||
'': {
|
||||
'level': hobo.logger.SettingsLogLevel(
|
||||
default_log_level='INFO'),
|
||||
'handlers': ['syslog', 'mail_admins', 'sentry'],
|
||||
'handlers': ['syslog', 'mail_admins'],
|
||||
},
|
||||
},
|
||||
}
|
||||
|
@ -177,16 +167,6 @@ if os.path.exists('/run/systemd/journal/socket'):
|
|||
LOGGING['loggers']['']['handlers'].remove('syslog')
|
||||
LOGGING['loggers']['']['handlers'].append('journald')
|
||||
|
||||
# Sentry support
|
||||
if 'SENTRY_DSN' in os.environ:
|
||||
try:
|
||||
from raven.transport.requests import RequestsHTTPTransport
|
||||
except ImportError:
|
||||
raise ImproperlyConfigured('cannot configure raven, import of RequestsHTTPTransport failed')
|
||||
else:
|
||||
SENTRY_DSN = os.environ['SENTRY_DSN']
|
||||
SENTRY_TRANSPORT = RequestsHTTPTransport
|
||||
|
||||
ETC_DIR = '/etc/%s' % PROJECT_NAME
|
||||
VAR_DIR = '/var/lib/%s' % PROJECT_NAME
|
||||
|
||||
|
|
|
@ -26,6 +26,6 @@ TENANT_BASE = '/that/path/does/not/exist'
|
|||
# suds logs are buggy
|
||||
LOGGING['loggers']['suds'] = {
|
||||
'level': 'ERROR',
|
||||
'handlers': ['mail_admins', 'sentry'],
|
||||
'handlers': ['mail_admins'],
|
||||
'propagate': True,
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue