Class: Cyberweb::REST::CommonLogger
- Inherits:
-
Rack::CommonLogger
- Object
- Rack::CommonLogger
- Cyberweb::REST::CommonLogger
- Defined in:
- lib/cyberweb/REST/base/common_logger.rb
Overview
#
The CommonLogger behaves exactly like Rack::CommonLogger with the notable exception that it does nothing, if another CommonLogger is already in the middleware chain.
#
Instance Method Summary collapse
-
#call(env) ⇒ Object
# === call ========================================================================= #.
Instance Method Details
#call(env) ⇒ Object
#
call
#
23 24 25 |
# File 'lib/cyberweb/REST/base/common_logger.rb', line 23 def call(env) env['sinatra.commonlogger'] ? @app.call(env) : super end |