Disable healthcheck call in logs?
Solved
Support
-
wrote on Nov 26, 2024, 8:45 AM last edited by girish Nov 26, 2024, 1:01 PM
In my custom app, can I disable the healthcheck call every few seconds? I don't feel that this is helpful.
-
There is no way to disable it, this is required for Cloudron to determine if an app is up and running and tracking its state. The single request on the local network is very cheap. Depending on your use-case sometimes the logs caused by that are annoying, but if this is a custom app, just disable the logging for that route I guess.
-
-
wrote on Nov 27, 2024, 4:56 AM last edited by
I understand that the healthcheck is required, I just want to avoid showing it in the logs.
But okay, I will see if I can disable that in the custom code. -
-
You can test on the User agent string. See https://docs.cloudron.io/apps/lamp/#health-check for an example