Fix logging module imported unconditionally in production.py
-import logging
-
from .base import * # noqa
from .base import env
@@ -235,6 +233,8 @@ LOGGING = {
},
}
+import logging
+
SENTRY_CELERY_LOGLEVEL = env.int('DJANGO_SENTRY_LOG_LEVEL', logging.INFO)
RAVEN_CONFIG = {
'dsn': SENTRY_DSN
