Created
July 7, 2017 01:08
-
-
Save JeffCohen/cf15e6a3b2573edfafabedaa5aabd31d to your computer and use it in GitHub Desktop.
Suppress those long stack traces in the server log!
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
# 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