Disable db stats in development (to much noise).

parent 71d2ca9a
Pipeline #13525042 failed with stages
in 7 minutes 31 seconds
......@@ -443,10 +443,9 @@ STATSD_HOST = os.environ.get('STATSD_HOST', '127.0.0.1')
STATSD_PREFIX = 'failmap'
# register hooks for selery tasks
STATSD_CELERY_SIGNALS = True
# log database query statistics
STATSD_PATCHES = [
'django_statsd.patches.db',
]
# send database query metric (in production, in development we have debug toolbar for this)
if not DEBUG:
STATSD_PATCHES = ['django_statsd.patches.db', ]
# enable some features during debug
if DEBUG:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment