Rails backtrace silencers do not work, while filters do

前端 未结 4 762
你的背包
你的背包 2021-01-12 00:42

Fresh Rails 4.2 set up. I want to suppress long error backtraces. In the following backtrace log first line would be enough for me, and next 4 could be removed



        
4条回答
  •  终归单人心
    2021-01-12 01:20

    I had a similar problem, which was caused by this code in test_helper:

    def MiniTest.filter_backtrace(backtrace, prefix=nil)
      backtrace
    end
    

    It was added to diagnose the error at some stage and overrides this. Removing that removed the backtrace.

提交回复
热议问题