From fb2dc39a4755d8d862aa6019fa0ede42d8fa3cb5 Mon Sep 17 00:00:00 2001 From: Dane Everitt Date: Wed, 3 Mar 2021 21:00:58 -0800 Subject: [PATCH] Remove some forgotten debug --- router/router_system.go | 5 +---- server/update.go | 2 -- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/router/router_system.go b/router/router_system.go index 8869398..b3eb1ce 100644 --- a/router/router_system.go +++ b/router/router_system.go @@ -2,7 +2,6 @@ package router import ( "bytes" - "fmt" "net/http" "strings" @@ -39,8 +38,6 @@ func postCreateServer(c *gin.Context) { buf := bytes.Buffer{} buf.ReadFrom(c.Request.Body) - fmt.Println(buf.String()) - install, err := installer.New(c.Request.Context(), manager, buf.Bytes()) if err != nil { if installer.IsValidationError(err) { @@ -50,7 +47,7 @@ func postCreateServer(c *gin.Context) { return } - // middleware.CaptureAndAbort(c, err) + middleware.CaptureAndAbort(c, err) return } diff --git a/server/update.go b/server/update.go index c65fdc4..b8db85e 100644 --- a/server/update.go +++ b/server/update.go @@ -2,7 +2,6 @@ package server import ( "encoding/json" - "fmt" "emperror.dev/errors" "github.com/buger/jsonparser" @@ -19,7 +18,6 @@ import ( // that is the case. func (s *Server) UpdateDataStructure(data []byte) error { src := new(Configuration) - fmt.Println("got data", string(data)) if err := json.Unmarshal(data, src); err != nil { return errors.Wrap(err, "server/update: could not unmarshal source data into Configuration struct") }