Fix Time.now deprecation warning
This commit is contained in:
parent
ec87dfb614
commit
79cd8bd646
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue