From a07327459c50a9e560c4d19c52eea1b7203a082b Mon Sep 17 00:00:00 2001 From: "Nikita P. Shupeyko" Date: Wed, 9 May 2018 13:24:08 +0300 Subject: [PATCH] Fix logging module imported unconditionally in production.py --- {{cookiecutter.project_slug}}/config/settings/production.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/{{cookiecutter.project_slug}}/config/settings/production.py b/{{cookiecutter.project_slug}}/config/settings/production.py index 24df1886..c032d996 100644 --- a/{{cookiecutter.project_slug}}/config/settings/production.py +++ b/{{cookiecutter.project_slug}}/config/settings/production.py @@ -1,5 +1,3 @@ -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