Skip to content

Commit

Permalink
Proxy GTFS-RT : réduit volume de logs
Browse files Browse the repository at this point in the history
  • Loading branch information
AntoineAugusti committed Feb 5, 2025
1 parent 9919d1b commit d5e81e6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions apps/unlock/lib/controller.ex
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ defmodule Unlock.Controller do

defp fetch_remote(%Unlock.Config.Item.Generic.HTTP{} = item) do
comp_fn = fn _key ->
Logger.info("Processing proxy request for identifier #{item.identifier}")
Logger.debug("Processing proxy request for identifier #{item.identifier}")

try do
Unlock.Telemetry.trace_request(item.identifier, :internal)
Expand All @@ -172,14 +172,14 @@ defmodule Unlock.Controller do

case outcome do
{:ok, result} ->
Logger.info("Proxy response for #{item.identifier} served from cache")
Logger.debug("Proxy response for #{item.identifier} served from cache")
result

{:commit, result, _options} ->
result

{:ignore, result} ->
Logger.info("Cache has been skipped for proxy response")
Logger.debug("Cache has been skipped for proxy response")
result

{:error, _error} ->
Expand Down

0 comments on commit d5e81e6

Please sign in to comment.