mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-26 09:42:46 +08:00
Fix stack trace trimming on WOPI middleware
This commit is contained in:
parent
70f7161c65
commit
fc4b271803
1 changed files with 6 additions and 0 deletions
|
@ -3,5 +3,11 @@
|
|||
# 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 =~ /my_noisy_library/ }
|
||||
|
||||
# Silence the WOPI method override to prevent "trapping" of stack/backtrace
|
||||
# See https://stackoverflow.com/questions/29498145
|
||||
Rails.backtrace_cleaner.add_silencer do |line|
|
||||
line =~ %r{app/middlewares/wopi_method_override}
|
||||
end
|
||||
|
||||
# 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!
|
||||
|
|
Loading…
Reference in a new issue