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?
Asked
Active
Viewed 248 times
1
-
Please show examples of this logging output. – Ryan Bigg Oct 22 '12 at 03:09
-
1@RyanBigg I came here searching for a solution for this. Getting all the info-level Deface output in production logs, eg `Deface: 2 overrides found for 'spree/orders/_line_item'` – sbeam Oct 22 '12 at 13:42
-
That'd be because the default log level within Rails is "info", and those are info messages. In `development`, it's "debug" instead. – Ryan Bigg Oct 22 '12 at 20:23
1 Answers
2
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.

sbeam
- 4,622
- 6
- 33
- 43
-
1This is an excellent idea. The only limitation is that I end up not seeing my other more valid 'debug' and 'warn' level output but that's small. I can simply use $stderr.puts for those things on this project. Thanks! – jaydel Oct 25 '12 at 12:13