Created
October 23, 2013 16:48
-
-
Save jonleighton/7122210 to your computer and use it in GitHub Desktop.
Report Rails deprecation warnings to Honeybadger (useful in production if there might be lines of code not covered by your tests - the horror!). Place this in your config/environments/production.rb
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ActiveSupport::Notifications.subscribe('deprecation.rails') do |name, start, finish, id, payload| | |
Honeybadger.notify( | |
error_class: "DEPRECATION WARNING", | |
error_message: payload[:message], | |
backtrace: payload[:callstack] | |
) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment