Using Rails' silence_healthcheck_path
#1439
Replies: 4 comments 2 replies
-
Hi @simonjnesta, unless Rails ignores this for us, I don't think we do anything with this setting, but it would be good if we did. You say you're still receiving logs from requests made to the |
Beta Was this translation helpful? Give feedback.
-
I think Rails should ignore it for you, but it doesn't seem to be working for me. I'm still getting logs like:
Relevant Rails code:
I decided to revert the default config in my dev environment, and instead use an initializer:
which resulted in weird behaviour in my logging - the GET "/up" line is gone, but everything else is the same (note: this wasn't connected to AppSignal, just using the rebroadcast feature):
And to clarify, if I switch to the default logger, none of those log lines appear for the /up route. |
Beta Was this translation helpful? Give feedback.
-
What version of Rails are you using @simonjnesta |
Beta Was this translation helpful? Give feedback.
-
I am testing it using Rails 8
I configured my test app using multiple logging backends. Since I am testing it in a development environment, I added the following to my # Prevent health checks from clogging up the logs.
config.silence_healthcheck_path = "/up" After that, I restarted my application, visited the |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I currently have AppSignal setup, in my production config:
I am receiving logs in AppSignal, but the
silence_healthcheck_path
option doesn't seem to be doing anything. Is there a way to get this working? I'd rather my logs not be clogged up.Beta Was this translation helpful? Give feedback.
All reactions