faas-js-runtime
faas-js-runtime copied to clipboard
Hide the health check log lines
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
I don't think you can specifically suppress health probes. You could try changing LOG_LEVEL envvar to prevent these.
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?