mirror of
https://github.com/mastodon/mastodon.git
synced 2026-09-13 00:55:59 -05:00
Do not truncate backtrace when the BACKTRACE env variable is set (#26794)
This commit is contained in:
@@ -16,7 +16,7 @@ class Mastodon::SidekiqMiddleware
|
||||
private
|
||||
|
||||
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
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user