mirror of
https://gitea.invidious.io/iv-org/shard-kemal.git
synced 2024-08-15 00:53:36 +00:00
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)
|
def call(context : HTTP::Server::Context)
|
||||||
elapsed_time = Time.measure { call_next(context) }
|
elapsed_time = Time.measure { call_next(context) }
|
||||||
elapsed_text = elapsed_text(elapsed_time)
|
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
|
context
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue