graphite-web
graphite-web copied to clipboard
Info logging is default True without config setting
Setting for info logging is currently default True, what spams my info.log file. 400 MByte after three seconds . Why is no config option available to stop it or to set a log level?
Hi @Kenterfie , Could you please show an example of logs which you have? I do not see any enabled by default logging in master...
Hello @Kenterfie, Did you find source of excessive logging? As far as I see in the code by default logging should be disabled.
Same here.
I think the culprit is https://github.com/graphite-project/graphite-web/blob/622830db42f392ce2f1f7fb4a1ddf0dbfd16185c/webapp/graphite/logger.py#L39 I usually patch my graphite installations with the above set to False.
As @Kenterfie said, this used to quickly fill up docker containers on busy systems, even with log rotation set to 1 day. Would be great to have the possibility to disable.
OK, this should be addressed.
Apps that forcefully log to disk are a major pain when using containers.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
This issue is still present in default installation, e.g. from Debian 10 repository.
Btw, you can set log file name to "-" to redirect logs to stdout E.g.
LOG_FILE_INFO="-"
LOG_FILE_EXCEPTION="-"
LOG_FILE_CACHE="-"
LOG_FILE_RENDERING="-"