Created
April 2, 2013 07:17
-
-
Save wteuber/5290482 to your computer and use it in GitHub Desktop.
Print full stacktrace from deprecation warnings
This file contains 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
MyApp::Application.configure do | |
#... | |
# Print deprecation notices to the stderr | |
#config.active_support.deprecation = :stderr | |
# Print full stacktrace from deprecation warnings | |
config.active_support.deprecation = Proc.new { |message, callstack| | |
$stderr.puts message, callstack | |
} | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Cool!