Skip to content

Instantly share code, notes, and snippets.

@wteuber
Created April 2, 2013 07:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wteuber/5290482 to your computer and use it in GitHub Desktop.
Save wteuber/5290482 to your computer and use it in GitHub Desktop.
Print full stacktrace from deprecation warnings
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
@cpetschnig
Copy link

Cool!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment