From 6e812f30ec8e1bef4fcdf7776a55f1c621cec030 Mon Sep 17 00:00:00 2001 From: Alan Guo Xiang Tan Date: Thu, 2 Sep 2021 15:09:55 +0800 Subject: [PATCH] DEV: Don't clear sidekiq default error handlers in development. (#14205) Restores error logs in the development environment. --- config/initializers/100-sidekiq.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/config/initializers/100-sidekiq.rb b/config/initializers/100-sidekiq.rb index 9311b1633f3..d4c1ddfbee0 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