mirror of
https://github.com/sinatra/sinatra
synced 2023-03-27 23:18:01 -04:00
commit
7e8920f20a
1 changed files with 1 additions and 1 deletions
|
@ -123,7 +123,7 @@ module Sinatra
|
||||||
end
|
end
|
||||||
|
|
||||||
# Behaves exactly like Rack::CommonLogger with the notable exception that it does nothing,
|
# Behaves exactly like Rack::CommonLogger with the notable exception that it does nothing,
|
||||||
# if another CommonLogger is already in the middleware chane.
|
# if another CommonLogger is already in the middleware chain.
|
||||||
class CommonLogger < Rack::CommonLogger
|
class CommonLogger < Rack::CommonLogger
|
||||||
def call(env)
|
def call(env)
|
||||||
env['sinatra.commonlogger'] ? @app.call(env) : super
|
env['sinatra.commonlogger'] ? @app.call(env) : super
|
||||||
|
|
Loading…
Add table
Reference in a new issue