From 9688e4db6d9d7f7f2b2b09d9fd9585beaa4a6eec Mon Sep 17 00:00:00 2001 From: Neil Alexander Date: Wed, 22 Apr 2020 17:07:44 +0100 Subject: [PATCH] Remove debug output --- syncapi/sync/requestpool.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/syncapi/sync/requestpool.go b/syncapi/sync/requestpool.go index 8c65d5637..69efd8aa8 100644 --- a/syncapi/sync/requestpool.go +++ b/syncapi/sync/requestpool.go @@ -15,8 +15,6 @@ package sync import ( - "encoding/json" - "fmt" "net/http" "time" @@ -126,10 +124,6 @@ func (rp *RequestPool) OnIncomingSyncRequest(req *http.Request, device *authtype if !syncData.IsEmpty() || hasTimedOut { logger.WithField("next", syncData.NextBatch).WithField("timed_out", hasTimedOut).Info("Responding") - - j, _ := json.MarshalIndent(syncData, "", " ") - fmt.Println(string(j)) - return util.JSONResponse{ Code: http.StatusOK, JSON: syncData,