Skip to content

Commit 716b9d6

Browse files
committed
don't re-encode json in logging
1 parent 4ba234b commit 716b9d6

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lib/open_trip_planner_client.ex

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,8 @@ defmodule OpenTripPlannerClient do
9595
response
9696
end
9797

98-
defp status_text({:ok, %{status: code, body: body}}) do
99-
string_body = Jason.encode!(body)
100-
"status=#{code} content_length=#{byte_size(string_body)}"
98+
defp status_text({:ok, %{status: code}}) do
99+
"status=#{code}"
101100
end
102101

103102
defp status_text({:error, error}) do

0 commit comments

Comments
 (0)