Skip to content

Commit

Permalink
log when action taken on feedback (#1911)
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonyshull authored Mar 7, 2024
1 parent d6d8da5 commit 9834fad
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/dotcom_web/controllers/trip_plan/feedback.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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
Expand Down

0 comments on commit 9834fad

Please sign in to comment.