From e8aaf84c63d17a4dab9b3012ee420a151fb611cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kristian=20=C3=98llegaard?= Date: Thu, 8 Sep 2011 10:50:05 +0200 Subject: [PATCH] A fix to make the newest gunicorn work with older projects, that doesn't have LOGGING_CONFIG --- gunicorn/app/djangoapp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gunicorn/app/djangoapp.py b/gunicorn/app/djangoapp.py index 3e682d63..d7f35d75 100644 --- a/gunicorn/app/djangoapp.py +++ b/gunicorn/app/djangoapp.py @@ -271,7 +271,7 @@ class DjangoApplicationCommand(DjangoApplication): time.tzset() # Settings are configured, so we can set up the logger if required - if settings.LOGGING_CONFIG: + if getattr(settings, 'LOGGING_CONFIG', False): # First find the logging configuration function ... logging_config_path, logging_config_func_name = settings.LOGGING_CONFIG.rsplit('.', 1) logging_config_module = importlib.import_module(logging_config_path)