Purple-Devs / health_check

Simple health check of Rails app for use with uptime checking sites like newrelic and pingdom
MIT License
476 stars 125 forks source link

Add log_level config setting which defaults to 'info'. #97

Closed FloHeinle closed 3 years ago

FloHeinle commented 4 years ago

This adds a config setting log_level which defaults to info, so the existing behavior is kept the same.

The log level can be set in a initializer like:

HealthCheck.setup do |config|
  config.log_level = 'error'
end
a3vorobyov commented 3 years ago

Hi @ianheggie, any update on this? We really need this change. It would be great if you have a look.

Thanks in advance.

ianheggie commented 3 years ago

@FloHeinle and @a3vorobyov I have merged this into master, am doing a few more PR's then issuing a new v3 gem release