Remove some forgotten debug

This commit is contained in:
Dane Everitt 2021-03-03 21:00:58 -08:00
parent 0919fb2da6
commit fb2dc39a47
2 changed files with 1 additions and 6 deletions

View File

@ -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
}

View File

@ -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")
}