Skip to content

Commit 1371032

Browse files
committed
Make plug's duration/1 function private
1 parent 274557c commit 1371032

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/logger_json/plug.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ if Code.ensure_loaded?(Plug) and Code.ensure_loaded?(:telemetry) do
9494
defp status(nil), do: ""
9595
defp status(status), do: [status |> Plug.Conn.Status.code() |> Integer.to_string(), ?\s]
9696

97-
def duration(duration) do
97+
defp duration(duration) do
9898
if duration > 1000 do
9999
[duration |> div(1000) |> Integer.to_string(), "ms"]
100100
else

0 commit comments

Comments
 (0)