Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Rack::Builder.new do
- use Rack::CommonLogger
- run SomeSinatraApp.new
- end
- ## is this the same as:
- logger_app = Rack::CommonLogger.new(SomeSinatraApp.new,{})
- # inside logger_app
- def call(env)
- # whatever logger_app does
- sinatra_app_here.call(env)
- # maybe more stuff logger_app might do
- return [status,opt,body]
- end
Add Comment
Please, Sign In to add comment