lib/logstasher.rb in logstasher-2.0.2 vs lib/logstasher.rb in logstasher-2.1.0
- old
+ new
@@ -34,10 +34,12 @@
unsubscribe(:action_controller, subscriber)
when 'ActionMailer::LogSubscriber'
unsubscribe(:action_mailer, subscriber)
when 'ActiveRecord::LogSubscriber'
unsubscribe(:active_record, subscriber)
- when 'ActiveJob::Logging::LogSubscriber'
+ when 'ActiveJob::LogSubscriber' # For Rails 6
+ unsubscribe(:active_job, subscriber)
+ when 'ActiveJob::Logging::LogSubscriber' # For Rails 5
unsubscribe(:active_job, subscriber)
end
end
end