We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
duration/1
1 parent 274557c commit 1371032Copy full SHA for 1371032
lib/logger_json/plug.ex
@@ -94,7 +94,7 @@ if Code.ensure_loaded?(Plug) and Code.ensure_loaded?(:telemetry) do
94
defp status(nil), do: ""
95
defp status(status), do: [status |> Plug.Conn.Status.code() |> Integer.to_string(), ?\s]
96
97
- def duration(duration) do
+ defp duration(duration) do
98
if duration > 1000 do
99
[duration |> div(1000) |> Integer.to_string(), "ms"]
100
else
0 commit comments