From ba22fa0ffc8c4fd0f21f7959178db0faeda8c928 Mon Sep 17 00:00:00 2001 From: Ruidy Date: Sat, 15 Jun 2024 07:55:48 +0200 Subject: [PATCH] log and return message --- internal/server/handle_api_sync.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/server/handle_api_sync.go b/internal/server/handle_api_sync.go index 7fdb521..affc700 100644 --- a/internal/server/handle_api_sync.go +++ b/internal/server/handle_api_sync.go @@ -21,8 +21,8 @@ func handleSync(bs *booking.Service) echo.HandlerFunc { if err != nil { return c.String(http.StatusInternalServerError, err.Error()) } - log.Warnf("%+v", b) + log.Infof("created booking %q from %q", b.Name, b.Platform) - return c.JSON(http.StatusCreated, b) + return c.JSON(http.StatusCreated, "👍") } }