DEV: Don't clear sidekiq default error handlers in development. (#14205)

Restores error logs in the development environment.
This commit is contained in:
Alan Guo Xiang Tan 2021-09-02 15:09:55 +08:00 committed by GitHub
parent 43f40c3cf5
commit 6e812f30ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -111,5 +111,8 @@ class SidekiqLogsterReporter < Sidekiq::ExceptionHandler::Logger
end
end
Sidekiq.error_handlers.clear
unless Rails.env.development?
Sidekiq.error_handlers.clear
end
Sidekiq.error_handlers << SidekiqLogsterReporter.new