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

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

Restores error logs in the development environment.

diff --git a/config/initializers/100-sidekiq.rb b/config/initializers/100-sidekiq.rb
index 9311b16..d4c1ddf 100644
--- a/config/initializers/100-sidekiq.rb
+++ b/config/initializers/100-sidekiq.rb
@@ -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

GitHub sha: 6e812f30ec8e1bef4fcdf7776a55f1c621cec030

This commit appears in #14205 which was approved by OsamaSayegh. It was merged by tgxworld.