Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

I like rack-cache's verbose formatting

  • Loading branch information...
commit 1d1484f215472b37c18e6cd732088050fc140da3 1 parent 23b4c86
@nakajima authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/sinatras-hat/maker.rb
View
4 lib/sinatras-hat/maker.rb
@@ -146,13 +146,13 @@ def log_with_benchmark(request, action)
msg << "Params: #{request.params.inspect}"
msg << "Action: #{action.to_s.upcase}"
- logger.info ">> " + msg.join(' | ')
+ logger.info "[sinatras-hat] " + msg.join(' | ')
result = nil
t = Benchmark.realtime { result = yield }
- logger.info " Request finished in #{t} sec."
+ logger.info " Request finished in #{t} sec."
result
end

0 comments on commit 1d1484f

Please sign in to comment.
Something went wrong with that request. Please try again.