Skip to content

Commit cc018f9

Browse files
amorphidJosé Valim
authored andcommitted
Stringify truncated function data in Logger (#4562)
Signed-off-by: José Valim <[email protected]>
1 parent 9374fbe commit cc018f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/logger/lib/logger.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -562,7 +562,7 @@ defmodule Logger do
562562
end
563563

564564
defp truncate(data, n) when is_function(data, 0),
565-
do: Logger.Utils.truncate(data.(), n)
565+
do: truncate(data.(), n)
566566
defp truncate(data, n) when is_list(data) or is_binary(data),
567567
do: Logger.Utils.truncate(data, n)
568568
defp truncate(data, n),

0 commit comments

Comments
 (0)