lib/timber/integrations/rack/http_events.rb in timber-2.1.0.rc1 vs lib/timber/integrations/rack/http_events.rb in timber-2.1.0.rc2
- old
+ new
@@ -103,10 +103,14 @@
def call(env)
request = Util::Request.new(env)
if silenced?(env, request)
- Config.instance.logger.silence do
+ if Config.instance.logger.respond_to?(:silence)
+ Config.instance.logger.silence do
+ @app.call(env)
+ end
+ else
@app.call(env)
end
elsif collapse_into_single_event?
start = Time.now
\ No newline at end of file