Sha256: d1b8aa4c95dbd2cfe734e4b4d382f6ebfb65b966c212dfff3566ffe0f8ddfdff

Contents?: true

Size: 272 Bytes

Versions: 24

Compression:

Stored size: 272 Bytes

Contents

module LogStasher
  module ContextWrapper
    def process_action(*)
      Thread.current[:logstasher_context] = {
        :controller => self,
        :request    => request
      }

      super
    ensure
      Thread.current[:logstasher_context] = nil
    end
  end
end

Version data entries

24 entries across 24 versions & 2 rubygems

Version Path
md-logstasher-1.0.0.rc4 lib/logstasher/context_wrapper.rb
md-logstasher-1.0.0.rc3 lib/logstasher/context_wrapper.rb
md-logstasher-1.0.0.rc2 lib/logstasher/context_wrapper.rb
md-logstasher-1.0.0.rc1 lib/logstasher/context_wrapper.rb