lib/api_client/connection/middlewares/request/logger.rb in api_client-0.1.1 vs lib/api_client/connection/middlewares/request/logger.rb in api_client-0.1.2
- old
+ new
@@ -3,10 +3,10 @@
def call(env)
time = Time.now
returns = @app.call(env)
taken = Time.now - time
- @logger.info "#{env[:method].upcase} #{env[:url]}: #{"%.4f" % taken} seconds"
+ @logger.info "#{env[:method].to_s.upcase} #{env[:url]}: #{"%.4f" % taken} seconds"
returns
end
def initialize(app, logger = nil)
@logger = logger || ::Logger.new(STDOUT)