lib/sinatra/rack.rb
def call(env)
        logger = ::Logger.new(env['rack.errors'])
        logger.level = @level
        env['rack.logger'] = logger
        @app.call(env)
      end
# In Rack 1.2 and earlier, Rack::Logger called env['rack.errors'].close,
# which is forbidden in the SPEC and made it impossible to use Rack::Lint.
# Also, it might close your log file after the first request, potentially
# crashing your web server.
In Rack 1.2 and earlier, Rack::Logger called env['rack.errors'].close,
which is forbidden in the SPEC and made it impossible to use Rack::Lint.
Also, it might close your log file after the first request, potentially
crashing your web server.
In Rack 1 . 2 and earlier Rack :: Logger called env [ ' rack . errors ' ] . close which is forbidden in the SPEC and made it impossible to use Rack :: Lint . Also it might close your log file after the first request potentially crashing your web server .
def call(env)
        logger = ::Logger.new(env['rack.errors'])
        logger.level = @level
        env['rack.logger'] = logger
        @app.call(env)
      end
def call ( env ) logger = :: Logger . new ( env [ 'rack.errors' ] ) logger . level = @level env [ 'rack.logger' ] = logger @app . call ( env ) end
In Rack 1.2 and earlier, Rack::Logger called env['rack.errors'].close,
which is forbidden in the SPEC and made it impossible to use Rack::Lint.
In Rack 1 . 2 and earlier Rack :: Logger called env [ ' rack . errors ' ] . close which is forbidden in the SPEC and made it impossible to use Rack :: Lint .
env