learninglocker icon indicating copy to clipboard operation
learninglocker copied to clipboard

logging: Redis log spam on INFO log level

Open ghost opened this issue 5 years ago • 0 comments

What version were you using?

5.4.0 open-source, but the issue persists up to git HEAD.

What steps can we follow to reproduce the behaviour?

Create a LearningLocker deployment with the log level set to INFO.

What is the actual behaviour?

The log contains infinite numbers of the following line:

[INFO] Creating Redis client

which is a log message originating from

https://github.com/LearningLocker/learninglocker/blob/v5.4.0/lib/connections/redis.js#L40. The message is added to the log every 5 to 10 seconds, resulting in 11,520 entries on a single day.

This meaningless message requires additional filtering on logs and/or search to discern any ongoing issues.

What is the expected behavior?

Messages like this should be logged only to the DEBUG log level. It prevents the operator from effectively using the application logs to debug issues.

A workaround is to set the loglevel to WARNING instead of INFO.

ghost avatar Apr 07 '20 11:04 ghost