Skip to content

Commit 445d417

Browse files
authored
Merge pull request #214 from unitmatrix/info_logging
allow info performance logging toggling
2 parents 0b27318 + 611b048 commit 445d417

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@ Additional environment variables can be set to adjust performance.
147147
* GRAPHITE_LOG_ROTATION_COUNT: (1) number of logs to keep (if GRAPHITE_LOG_ROTATION is true)
148148
* GRAPHITE_LOG_RENDERING_PERFORMANCE: (true) log performance information
149149
* GRAPHITE_LOG_CACHE_PERFORMANCE: (true) log cache performance information
150+
* GRAPHITE_LOG_INFO_PERFORMANCE: (false) log info performance information
150151
* GRAPHITE_LOG_FILE_INFO: (info.log), set to "-" for stdout/stderr
151152
* GRAPHITE_LOG_FILE_EXCEPTION: (exception.log), set to "-" for stdout/stderr
152153
* GRAPHITE_LOG_FILE_CACHE: (cache.log), set to "-" for stdout/stderr

conf/opt/graphite/webapp/graphite/local_settings.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
LOG_ROTATION_COUNT = int(os.environ.get('GRAPHITE_LOG_ROTATION_COUNT', '1'))
3737
LOG_RENDERING_PERFORMANCE = os.environ.get("GRAPHITE_LOG_RENDERING_PERFORMANCE", "true").lower() in ['1', 'true', 'yes']
3838
LOG_CACHE_PERFORMANCE = os.environ.get("GRAPHITE_LOG_CACHE_PERFORMANCE", "true").lower() in ['1', 'true', 'yes']
39+
LOG_INFO_PERFORMANCE = os.environ.get("GRAPHITE_LOG_INFO_PERFORMANCE", "false").lower() in ['1', 'true', 'yes']
3940

4041
# Filenames for log output, set to '-' to log to stderr
4142
LOG_FILE_INFO = os.environ.get("GRAPHITE_LOG_FILE_INFO", 'info.log')

0 commit comments

Comments
 (0)