Do not truncate backtrace when the BACKTRACE env variable is set (#26794)
				
					
				
			This commit is contained in:
		
							parent
							
								
									3433972ed3
								
							
						
					
					
						commit
						27e5b1ad3d
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -16,7 +16,7 @@ class Mastodon::SidekiqMiddleware
 | 
				
			||||||
  private
 | 
					  private
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  def limit_backtrace_and_raise(exception)
 | 
					  def limit_backtrace_and_raise(exception)
 | 
				
			||||||
    exception.set_backtrace(exception.backtrace.first(BACKTRACE_LIMIT))
 | 
					    exception.set_backtrace(exception.backtrace.first(BACKTRACE_LIMIT)) unless ENV['BACKTRACE']
 | 
				
			||||||
    raise exception
 | 
					    raise exception
 | 
				
			||||||
  end
 | 
					  end
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue