Sha256: ca747750a8f27b54d3d503ed5e7ba131c0dc8d43728d5f9b29a59cbfd6f45d67
Contents?: true
Size: 324 Bytes
Versions: 2
Compression:
Stored size: 324 Bytes
Contents
module Logster module Middleware class Reporter def initialize(app, config={}) @app = app end def call(env) Thread.current[Logster::Logger::LOGSTER_ENV] = env @app.call(env) ensure Thread.current[Logster::Logger::LOGSTER_ENV] = nil end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
logster-0.0.6 | lib/logster/middleware/reporter.rb |
logster-0.0.5 | lib/logster/middleware/reporter.rb |