feat: more verbose logging on data manipulation endpoints

This commit is contained in:
2026-08-21 16:28:17 +02:00
parent 76f6b06bbd
commit 6419f14b7d
+3
View File
@@ -205,6 +205,7 @@ func (h *ListHandler) CreateListItem(w http.ResponseWriter, r *http.Request) {
return return
} }
slog.InfoContext(ctx, "created list item successfully", slog.Any("list_item_id", item.ID))
response.JSON(ctx, w, http.StatusCreated, item) response.JSON(ctx, w, http.StatusCreated, item)
} }
@@ -245,6 +246,7 @@ func (h *ListHandler) UpdateListItem(w http.ResponseWriter, r *http.Request) {
return return
} }
slog.InfoContext(ctx, "updated list item successfully", slog.Any("list_item_id", payload.ListItemID))
response.Status(ctx, w, http.StatusNoContent) response.Status(ctx, w, http.StatusNoContent)
} }
@@ -293,6 +295,7 @@ func (h *ListHandler) SetListItemCompleted(w http.ResponseWriter, r *http.Reques
return return
} }
slog.InfoContext(ctx, "updated list item completed successful", slog.Any("list_item_id", listItemID))
response.Status(ctx, w, http.StatusNoContent) response.Status(ctx, w, http.StatusNoContent)
} }