Silence Deface log output

262 Views Asked by At

I am getting a crap-ton of log noise from Deface. I'm not the view guy on my current project and I'd really like to remove that crap from the logs. I'd also imagine that on a live production application you'd want to silence or suppress that as well. I have a hook that silences asset output already...is my best bet to just put this in there as additional logic or is there some configuration for Deface and/or Spree to silence the log noise?

1

There are 1 best solutions below

1
On BEST ANSWER

thanks @RyanBigg. so set

config.log_level = :warn

in /config/environments/production.rb or /config/environments/development.rb as needed.

There doesn't seem to way to specifically silence Deface with a setting, but if Deface were to have its own logger that wraps its calls to Rails.logger, that might be a good feature.