mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-06 02:29:59 +02:00
Resolve "Remove Raven Sentry"
This commit is contained in:
parent
76aa8610a5
commit
5d745fea6f
6 changed files with 1 additions and 47 deletions
|
@ -11,8 +11,6 @@ from urllib.parse import urlsplit
|
|||
import environ
|
||||
from celery.schedules import crontab
|
||||
|
||||
from funkwhale_api import __version__
|
||||
|
||||
logger = logging.getLogger("funkwhale_api.config")
|
||||
ROOT_DIR = environ.Path(__file__) - 3 # (/a/b/myfile.py - 3 = /)
|
||||
APPS_DIR = ROOT_DIR.path("funkwhale_api")
|
||||
|
@ -33,11 +31,6 @@ logging.config.dictConfig(
|
|||
},
|
||||
"handlers": {
|
||||
"console": {"class": "logging.StreamHandler", "formatter": "console"},
|
||||
# # Add Handler for Sentry for `warning` and above
|
||||
# 'sentry': {
|
||||
# 'level': 'WARNING',
|
||||
# 'class': 'raven.contrib.django.raven_compat.handlers.SentryHandler',
|
||||
# },
|
||||
},
|
||||
"loggers": {
|
||||
"funkwhale_api": {
|
||||
|
@ -227,19 +220,6 @@ THIRD_PARTY_APPS = (
|
|||
)
|
||||
|
||||
|
||||
# Sentry
|
||||
RAVEN_ENABLED = env.bool("RAVEN_ENABLED", default=False)
|
||||
RAVEN_DSN = env("RAVEN_DSN", default="")
|
||||
|
||||
if RAVEN_ENABLED:
|
||||
RAVEN_CONFIG = {
|
||||
"dsn": RAVEN_DSN,
|
||||
# If you are using git, you can also automatically configure the
|
||||
# release based on the git info.
|
||||
"release": __version__,
|
||||
}
|
||||
THIRD_PARTY_APPS += ("raven.contrib.django.raven_compat",)
|
||||
|
||||
# Apps specific for this project go here.
|
||||
LOCAL_APPS = (
|
||||
"funkwhale_api.common.apps.CommonConfig",
|
||||
|
|
|
@ -4,7 +4,6 @@ from django.core.validators import FileExtensionValidator
|
|||
from dynamic_preferences import types
|
||||
from dynamic_preferences.registries import global_preferences_registry
|
||||
|
||||
raven = types.Section("raven")
|
||||
instance = types.Section("instance")
|
||||
ui = types.Section("ui")
|
||||
|
||||
|
@ -107,22 +106,6 @@ class InstanceFunkwhaleSupportMessageEnabled(types.BooleanPreference):
|
|||
)
|
||||
|
||||
|
||||
@global_preferences_registry.register
|
||||
class RavenDSN(types.StringPreference):
|
||||
show_in_api = True
|
||||
section = raven
|
||||
name = "front_dsn"
|
||||
default = "https://9e0562d46b09442bb8f6844e50cbca2b@sentry.eliotberriot.com/4"
|
||||
verbose_name = "Raven DSN key (front-end)"
|
||||
|
||||
help_text = (
|
||||
"A Raven DSN key used to report front-ent errors to "
|
||||
"a sentry instance. Keeping the default one will report errors to "
|
||||
"Funkwhale developers."
|
||||
)
|
||||
field_kwargs = {"required": False}
|
||||
|
||||
|
||||
@global_preferences_registry.register
|
||||
class InstanceNodeinfoPrivate(types.BooleanPreference):
|
||||
show_in_api = False
|
||||
|
|
|
@ -37,7 +37,6 @@ mutagen~=1.45.0
|
|||
pymemoize~=1.0.0
|
||||
|
||||
django-dynamic-preferences~=1.10
|
||||
raven~=6.10.0
|
||||
python-magic~=0.4.0
|
||||
channels~=2.4.0
|
||||
channels_redis~=3.0.0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue