Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hide the health check log lines #315

Open
mohsen0 opened this issue Sep 21, 2023 · 2 comments
Open

Hide the health check log lines #315

mohsen0 opened this issue Sep 21, 2023 · 2 comments

Comments

@mohsen0
Copy link

mohsen0 commented Sep 21, 2023

Hi

is there a way to hide health check log lines?
it is quite expensive for a logging system.

{"level":30,"time":1695291091052,"pid":6095,"hostname":"localhost","node_version":"v14.21.3","reqId":"req-8","req":{"method":"GET","url":"/health/liveness","hostname":"localhost:8080","remoteAddress":"::ffff:127.0.0.1","remotePort":62095},"msg":"incoming request"}
{"level":30,"time":1695291091054,"pid":6095,"hostname":"localhost","node_version":"v14.21.3","reqId":"req-8","res":{"statusCode":200},"responseTime":1.2222920656204224,"msg":"request completed"}

Thanks

@matejvasek
Copy link
Contributor

I don't think you can specifically suppress health probes. You could try changing LOG_LEVEL envvar to prevent these.

@lholmquist
Copy link
Member

You could try changing LOG_LEVEL envvar to prevent these.

This would also affect the regular logging, which might be ok too? I wonder if it would be beneficial to have an option to not show health check logging?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants