lib/flapjack/api.rb in flapjack-0.6.40 vs lib/flapjack/api.rb in flapjack-0.6.41
- old
+ new
@@ -81,9 +81,15 @@
alias_method :thin_cleanup, :cleanup
def bootstrap(opts = {})
thin_bootstrap(opts)
@redis = Flapjack::RedisPool.new(:config => opts[:redis_config], :size => 1)
+
+ if config && config['access_log']
+ access_logger = Flapjack::RackLogger.new(config['access_log'])
+ use Rack::CommonLogger, access_logger
+ end
+
end
def cleanup
@redis.empty! if @redis
thin_cleanup