diff options
-rw-r--r-- | lib/active_job/base.rb | 1 | ||||
-rw-r--r-- | lib/active_job/log_subscriber.rb | 1 | ||||
-rw-r--r-- | lib/active_job/logging.rb | 2 |
3 files changed, 2 insertions, 2 deletions
diff --git a/lib/active_job/base.rb b/lib/active_job/base.rb index ed402bd8d3..3d16f38275 100644 --- a/lib/active_job/base.rb +++ b/lib/active_job/base.rb @@ -2,7 +2,6 @@ require 'active_job/queue_adapter' require 'active_job/queue_name' require 'active_job/enqueuing' require 'active_job/logging' -require 'active_job/log_subscriber' module ActiveJob class Base diff --git a/lib/active_job/log_subscriber.rb b/lib/active_job/log_subscriber.rb index 81859d8da1..31c61a6068 100644 --- a/lib/active_job/log_subscriber.rb +++ b/lib/active_job/log_subscriber.rb @@ -1,6 +1,5 @@ module ActiveJob class LogSubscriber < ActiveSupport::LogSubscriber - def enqueue(event) payload = event.payload params = payload[:params] diff --git a/lib/active_job/logging.rb b/lib/active_job/logging.rb index 7bd77b7ca5..0e994a8f54 100644 --- a/lib/active_job/logging.rb +++ b/lib/active_job/logging.rb @@ -1,3 +1,5 @@ +require 'active_job/log_subscriber' + module ActiveJob module Logging mattr_accessor(:logger) { ActiveSupport::Logger.new(STDOUT) } |