Skip to content

Commit

Permalink
set log level to debug when settings.DEBUG is True
Browse files Browse the repository at this point in the history
  • Loading branch information
DanCech committed Nov 30, 2017
1 parent 6182d86 commit 203e959
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions webapp/graphite/logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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
Expand Down

0 comments on commit 203e959

Please sign in to comment.