From 9559cbf1eccd05d881427b6cef640fef5da95327 Mon Sep 17 00:00:00 2001 From: kolaente Date: Tue, 13 Jul 2021 12:14:59 +0200 Subject: [PATCH] Add more logging for test data api endpoint --- pkg/routes/api/v1/testing.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkg/routes/api/v1/testing.go b/pkg/routes/api/v1/testing.go index ac81a44a..cd35a223 100644 --- a/pkg/routes/api/v1/testing.go +++ b/pkg/routes/api/v1/testing.go @@ -18,6 +18,7 @@ package v1 import ( "bytes" + "code.vikunja.io/api/pkg/log" "encoding/json" "net/http" @@ -52,6 +53,7 @@ func HandleTesting(c echo.Context) error { content := []map[string]interface{}{} err := json.Unmarshal(buf.Bytes(), &content) if err != nil { + log.Errorf("Error replacing table data: %v", err) return c.JSON(http.StatusInternalServerError, map[string]interface{}{ "error": true, "message": err.Error(), @@ -66,6 +68,7 @@ func HandleTesting(c echo.Context) error { } if err != nil { + log.Errorf("Error replacing table data: %v", err) return c.JSON(http.StatusInternalServerError, map[string]interface{}{ "error": true, "message": err.Error(),