From 6419f14b7da15402004163a267d072aa3cd47b67 Mon Sep 17 00:00:00 2001 From: Robin Dittmar Date: Fri, 21 Aug 2026 16:28:17 +0200 Subject: [PATCH] feat: more verbose logging on data manipulation endpoints --- internal/api/handler/list.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/internal/api/handler/list.go b/internal/api/handler/list.go index ef3d354..0732f34 100644 --- a/internal/api/handler/list.go +++ b/internal/api/handler/list.go @@ -205,6 +205,7 @@ func (h *ListHandler) CreateListItem(w http.ResponseWriter, r *http.Request) { return } + slog.InfoContext(ctx, "created list item successfully", slog.Any("list_item_id", item.ID)) response.JSON(ctx, w, http.StatusCreated, item) } @@ -245,6 +246,7 @@ func (h *ListHandler) UpdateListItem(w http.ResponseWriter, r *http.Request) { return } + slog.InfoContext(ctx, "updated list item successfully", slog.Any("list_item_id", payload.ListItemID)) response.Status(ctx, w, http.StatusNoContent) } @@ -293,6 +295,7 @@ func (h *ListHandler) SetListItemCompleted(w http.ResponseWriter, r *http.Reques return } + slog.InfoContext(ctx, "updated list item completed successful", slog.Any("list_item_id", listItemID)) response.Status(ctx, w, http.StatusNoContent) } -- 2.54.0