lib/heavylog.rb in heavylog-0.0.25 vs lib/heavylog.rb in heavylog-0.0.26
- old
+ new
@@ -53,12 +53,12 @@
def attach_to_sidekiq
return unless config.log_sidekiq
Sidekiq.configure_server do |config|
config[:job_logger] = SidekiqLogger
- end
- Sidekiq.error_handlers << SidekiqExceptionHandler.new
+ config.error_handlers << SidekiqExceptionHandler.new
+ end
end
def setup_custom_payload
return unless config.custom_payload_method.respond_to?(:call)