From 9834fad041003d84b79989a8f22ee4027b419ad9 Mon Sep 17 00:00:00 2001 From: Anthony Shull Date: Thu, 7 Mar 2024 10:51:29 -0600 Subject: [PATCH] log when action taken on feedback (#1911) --- lib/dotcom_web/controllers/trip_plan/feedback.ex | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/dotcom_web/controllers/trip_plan/feedback.ex b/lib/dotcom_web/controllers/trip_plan/feedback.ex index 791548797c..5c9feaa810 100644 --- a/lib/dotcom_web/controllers/trip_plan/feedback.ex +++ b/lib/dotcom_web/controllers/trip_plan/feedback.ex @@ -3,6 +3,9 @@ defmodule DotcomWeb.TripPlan.Feedback do Handle submission of the feedback form given with each itinerary returned by the trip planner. Saves to the Redis cache with the default TTL of :infinity. """ + + require Logger + use DotcomWeb, :controller use Nebulex.Caching @@ -14,6 +17,8 @@ defmodule DotcomWeb.TripPlan.Feedback do def put(conn, params), do: cache_and_response(conn, params, :put) defp cache_and_response(conn, params, action) do + Logger.info("dotcom_web.trip_plan.feedback action=#{action}") + handle_cache(action, params) send_resp(conn, 202, "") end