root(minor): disable error reporting by default

This commit is contained in:
Langhammer, Jens 2019-11-20 13:12:37 +01:00
parent 30dba285d9
commit 979bea17ed
4 changed files with 7 additions and 5 deletions

View File

@ -12,5 +12,5 @@ data:
host: "{{ .Release.Name }}-redis-master"
cache_db: 0
message_queue_db: 1
error_report_enabled: {{ .Values.config.error_reporting }}
error_reporting: {{ .Values.config.error_reporting }}
domain: ".{{ index .Values.ingress.hosts 0 }}"

View File

@ -10,7 +10,7 @@ config:
# Optionally specify fixed secret_key, otherwise generated automatically
# secret_key: _k*@6h2u2@q-dku57hhgzb7tnx*ba9wodcb^s9g0j59@=y(@_o
# Enable error reporting
error_reporting: true
error_reporting: false
email:
host: localhost

View File

@ -13,8 +13,8 @@ redis:
debug: false
# Error reporting, sends stacktrace to sentry.services.beryju.org
error_report_enabled: true
# Error reporting, sends stacktrace to sentry.beryju.org
error_reporting: false
domain: localhost

View File

@ -266,7 +266,9 @@ if CONFIG.y('postgresql.backup'):
}
# Sentry integration
if not DEBUG:
_ERROR_REPORTING = CONFIG.y_bool('error_reporting', False)
if not DEBUG and _ERROR_REPORTING:
LOGGER.info("Error reporting is enabled.")
sentry_init(
dsn="https://33cdbcb23f8b436dbe0ee06847410b67@sentry.beryju.org/3",
integrations=[