1
0
mirror of https://github.com/whippyshou/mastodon synced 2024-11-27 14:28:55 +09:00

Do not truncate backtrace when the BACKTRACE env variable is set (#26794)

This commit is contained in:
Claire 2023-09-06 09:18:10 +02:00 committed by GitHub
parent d8bdba2f9f
commit ec48bc3610
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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