Open owenbendavies opened 5 years ago
There is now a cleaner system in Rails 6 (and possibly earlier) to unsub ..
ActiveJob::Logging::LogSubscriber.detach_from(:active_job)
I Imagine the same mechanism can be used for most of the other log subscribers
When suppress_app_logs is set ActiveJob still has the default logs so I get double logs, e.g.
I have done some digging and in https://github.com/shadabahmed/logstasher/blob/master/lib/logstasher.rb#L44 events reuturns an array of items, but for ActiveJob::Logging::LogSubscriber it returns an empty array.
Unfortunately I'm not quite sure why this is different.
Thank you, Owen