mirror of
https://github.com/discourse/discourse.git
synced 2025-01-30 23:30:45 +08:00
DEV: Don't clear sidekiq default error handlers in development. (#14205)
Restores error logs in the development environment.
This commit is contained in:
parent
43f40c3cf5
commit
6e812f30ec
|
@ -111,5 +111,8 @@ class SidekiqLogsterReporter < Sidekiq::ExceptionHandler::Logger
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
Sidekiq.error_handlers.clear
|
unless Rails.env.development?
|
||||||
|
Sidekiq.error_handlers.clear
|
||||||
|
end
|
||||||
|
|
||||||
Sidekiq.error_handlers << SidekiqLogsterReporter.new
|
Sidekiq.error_handlers << SidekiqLogsterReporter.new
|
||||||
|
|
Loading…
Reference in New Issue
Block a user