Sha256: 4773a28f7525ffe99c407b9a13a5decd4bfa13d38423bc31181500fbfe20f576

Contents?: true

Size: 376 Bytes

Versions: 1

Compression:

Stored size: 376 Bytes

Contents

module Timber
  module Probes
    class ActiveSupportLogSubscriber < Probe
      module ActionController
        def self.process_action(_log_subscriber, event, &_block)
          context = CurrentContext.get(Contexts::HTTPResponses::ActionController)
          if context
            context.event = event
          end
          yield
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
timberio-1.0.0.beta1 lib/timber/probes/active_support_log_subscriber/action_controller.rb