graphite-web icon indicating copy to clipboard operation
graphite-web copied to clipboard

Info logging is default True without config setting

Open Kenterfie opened this issue 7 years ago • 8 comments

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?

Kenterfie avatar Mar 20 '17 15:03 Kenterfie

Hi @Kenterfie , Could you please show an example of logs which you have? I do not see any enabled by default logging in master...

deniszh avatar Mar 20 '17 16:03 deniszh

Hello @Kenterfie, Did you find source of excessive logging? As far as I see in the code by default logging should be disabled.

deniszh avatar Mar 26 '17 16:03 deniszh

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.

xneo64 avatar May 02 '17 22:05 xneo64

OK, this should be addressed.

deniszh avatar May 03 '17 19:05 deniszh

Apps that forcefully log to disk are a major pain when using containers.

Quentin-M avatar Sep 11 '18 01:09 Quentin-M

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.

stale[bot] avatar Apr 13 '20 21:04 stale[bot]

This issue is still present in default installation, e.g. from Debian 10 repository.

henningw avatar Mar 25 '21 17:03 henningw

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="-"

deniszh avatar Mar 25 '21 18:03 deniszh