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.8.0 lib/logstasher/context_wrapper.rb
md-logstasher-1.7.0 lib/logstasher/context_wrapper.rb
md-logstasher-1.6.0 lib/logstasher/context_wrapper.rb
md-logstasher-1.5.0 lib/logstasher/context_wrapper.rb
md-logstasher-1.4.1 lib/logstasher/context_wrapper.rb
md-logstasher-1.4.0 lib/logstasher/context_wrapper.rb
md-logstasher-1.3.0 lib/logstasher/context_wrapper.rb
md-logstasher-1.2.0 lib/logstasher/context_wrapper.rb
rv-logstasher-1.5.0 lib/logstasher/context_wrapper.rb
rv-logstasher-1.4.0 lib/logstasher/context_wrapper.rb
md-logstasher-1.1.0 lib/logstasher/context_wrapper.rb
rv-logstasher-1.3.2 lib/logstasher/context_wrapper.rb
rv-logstasher-1.3.1 lib/logstasher/context_wrapper.rb
md-logstasher-1.0.5 lib/logstasher/context_wrapper.rb
md-logstasher-1.0.4 lib/logstasher/context_wrapper.rb
md-logstasher-1.0.3 lib/logstasher/context_wrapper.rb
md-logstasher-1.0.2 lib/logstasher/context_wrapper.rb
md-logstasher-1.0.1 lib/logstasher/context_wrapper.rb
md-logstasher-1.0.0 lib/logstasher/context_wrapper.rb
md-logstasher-1.0.0.rc5 lib/logstasher/context_wrapper.rb