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