I am getting undesirable deprecation warnings on my Apache’s error log:
/srv/www/<application>/shared/bundle/ruby/1.8/gems/actionpack-3.0.7/lib/action_view/paths.rb:15: warning: Object#id will be deprecated; use Object#object_id
I would like not to print these deprecation warnings when in production.
I have tried to add this to my enviromenents/production.rb file:
config.active_support.deprecation = nil
and
config.active_support.deprecation = :stderr
and
config.active_support.deprecation = :notify
and
config.active_support.deprecation = :log
Though, I had no success with any of these options, since the Apache log continue’s to get my deprecation warnings.
Does anyone know how should I do this?
This particular warning is printed by Ruby itself, it has nothing to do with
active_support. The only way I see is to disable allstderroutput, but I doubt it’s what you want.Added:
To catch it this should help: