From 203e9599edae342ef11e76f00f1e97bd92bdc0f2 Mon Sep 17 00:00:00 2001 From: Dan Cech Date: Wed, 29 Nov 2017 17:58:25 -0500 Subject: [PATCH] set log level to debug when settings.DEBUG is True --- webapp/graphite/logger.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/webapp/graphite/logger.py b/webapp/graphite/logger.py index b65802fe3..9cbc46992 100644 --- a/webapp/graphite/logger.py +++ b/webapp/graphite/logger.py @@ -36,7 +36,7 @@ def __init__(self): settings.LOG_FILE_INFO, 'info', True, - level = logging.INFO, + level = logging.DEBUG if settings.DEBUG else logging.INFO, ) self.exceptionLogger = self._config_logger( settings.LOG_FILE_EXCEPTION, @@ -47,13 +47,13 @@ def __init__(self): settings.LOG_FILE_CACHE, 'cache', settings.LOG_CACHE_PERFORMANCE, - level = logging.INFO, + level = logging.DEBUG if settings.DEBUG else logging.INFO, ) self.renderingLogger = self._config_logger( settings.LOG_FILE_RENDERING, 'rendering', settings.LOG_RENDERING_PERFORMANCE, - level = logging.INFO, + level = logging.DEBUG if settings.DEBUG else logging.INFO, ) @staticmethod