Move Rack::CommonLogger into it's own file
This commit is contained in:
parent
53256ecc00
commit
6770a8cfb1
9
lib/rack/common_logger.rb
Normal file
9
lib/rack/common_logger.rb
Normal file
@ -0,0 +1,9 @@
|
||||
# Disable Rack logger completely
|
||||
module Rack
|
||||
class CommonLogger
|
||||
def call(env)
|
||||
# do nothing
|
||||
@app.call(env)
|
||||
end
|
||||
end
|
||||
end
|
@ -4,18 +4,9 @@ require "json"
|
||||
require "sinatra/base"
|
||||
require 'sinatra/config_file'
|
||||
require "sinatra/reloader"
|
||||
require "rack/common_logger"
|
||||
require "remote_storage/riak"
|
||||
|
||||
# Disable Rack logger completely
|
||||
module Rack
|
||||
class CommonLogger
|
||||
def call(env)
|
||||
# do nothing
|
||||
@app.call(env)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
class LiquorCabinet < Sinatra::Base
|
||||
|
||||
#
|
||||
|
Loading…
x
Reference in New Issue
Block a user