Remove debug output

This commit is contained in:
Neil Alexander 2020-04-22 17:07:44 +01:00
parent 2de420f9c0
commit 9688e4db6d

View file

@ -15,8 +15,6 @@
package sync package sync
import ( import (
"encoding/json"
"fmt"
"net/http" "net/http"
"time" "time"
@ -126,10 +124,6 @@ func (rp *RequestPool) OnIncomingSyncRequest(req *http.Request, device *authtype
if !syncData.IsEmpty() || hasTimedOut { if !syncData.IsEmpty() || hasTimedOut {
logger.WithField("next", syncData.NextBatch).WithField("timed_out", hasTimedOut).Info("Responding") logger.WithField("next", syncData.NextBatch).WithField("timed_out", hasTimedOut).Info("Responding")
j, _ := json.MarshalIndent(syncData, "", " ")
fmt.Println(string(j))
return util.JSONResponse{ return util.JSONResponse{
Code: http.StatusOK, Code: http.StatusOK,
JSON: syncData, JSON: syncData,