add more logging

This commit is contained in:
2026-06-16 16:23:46 +02:00
parent 75af18ae85
commit 06fab75109
+4
View File
@@ -376,6 +376,8 @@ func (h *ApiHandler) ServeBlogPostPublish(writer http.ResponseWriter, request *h
return return
} }
log.Printf("Published blog article %d", id)
WriteResponse(writer, http.StatusOK, map[string]interface{}{}) WriteResponse(writer, http.StatusOK, map[string]interface{}{})
} }
@@ -397,6 +399,8 @@ func (h *ApiHandler) ServeBlogPostUnpublish(writer http.ResponseWriter, request
return return
} }
log.Printf("Unpublished blog article %d", id)
WriteResponse(writer, http.StatusOK, map[string]interface{}{}) WriteResponse(writer, http.StatusOK, map[string]interface{}{})
} }