chore: add log
ci-api / test (push) Has been cancelled

This commit is contained in:
Nuxgrid
2026-07-28 17:14:58 +02:00
parent b7043e113f
commit 33448dfda1
@@ -2,6 +2,7 @@ package leads
import (
"html"
"log"
"net/http"
"strings"
@@ -26,6 +27,7 @@ type createRequest struct {
// Les entrées sont nettoyées (trim + échappement HTML) avant stockage.
func (h *Handler) Create(c *gin.Context) {
var req createRequest
log.Printf("request-debug: %s", req)
if err := c.ShouldBindJSON(&req); err != nil {
c.JSON(http.StatusBadRequest, gin.H{"error": "requête invalide"})
return