Skip to content

Instantly share code, notes, and snippets.

@JeffCohen
Created July 7, 2017 01:08
Show Gist options
  • Save JeffCohen/cf15e6a3b2573edfafabedaa5aabd31d to your computer and use it in GitHub Desktop.
Save JeffCohen/cf15e6a3b2573edfafabedaa5aabd31d to your computer and use it in GitHub Desktop.
Suppress those long stack traces in the server log!
# Be sure to restart your server when you modify this file.
# You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
# Rails.backtrace_cleaner.add_silencer { |line| line =~ /lib/ }
# You can also remove all the silencers if you're trying to debug a problem that might stem from framework code.
# Rails.backtrace_cleaner.remove_silencers!
module ActionDispatch
class ExceptionWrapper
def framework_trace
[]
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment