log and return message

This commit is contained in:
Ruidy 2024-06-15 07:55:48 +02:00
parent 33c1c450e0
commit ba22fa0ffc
No known key found for this signature in database
GPG key ID: E00F51288CB857CC

View file

@ -21,8 +21,8 @@ func handleSync(bs *booking.Service) echo.HandlerFunc {
if err != nil { if err != nil {
return c.String(http.StatusInternalServerError, err.Error()) 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, "👍")
} }
} }