Skip to content

Commit

Permalink
Merge pull request #535 from bcardiff/crystal/0.29.0
Browse files Browse the repository at this point in the history
Fix Time.now deprecation warning
  • Loading branch information
sdogruyol committed Jun 10, 2019
2 parents ec87dfb + 79cd8bd commit c646aad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/kemal/log_handler.cr
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ module Kemal
def call(context : HTTP::Server::Context)
elapsed_time = Time.measure { call_next(context) }
elapsed_text = elapsed_text(elapsed_time)
@io << Time.now << ' ' << context.response.status_code << ' ' << context.request.method << ' ' << context.request.resource << ' ' << elapsed_text << '\n'
@io << Time.utc << ' ' << context.response.status_code << ' ' << context.request.method << ' ' << context.request.resource << ' ' << elapsed_text << '\n'
context
end

Expand Down

0 comments on commit c646aad

Please sign in to comment.