Skip to content

Commit 9961eae

Browse files
s-skorobohatkos-skorobohatko
andauthored
clean log output (#3)
Co-authored-by: s-skorobohatko <[email protected]>
1 parent f2af0d5 commit 9961eae

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/handler/middleware.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -282,8 +282,8 @@ func (s *KubernetesClusterMiddleware) handleInsertCluster(w http.ResponseWriter,
282282
http.Error(w, "Invalid request", http.StatusBadRequest)
283283
return
284284
}
285-
286-
log.Printf("Received JSON: %s", string(body))
285+
// for debug
286+
//log.Printf("Received JSON: %s", string(body))
287287
if err := json.Unmarshal(body, &cluster); err != nil {
288288
log.Println("Failed to parse JSON:", err)
289289
http.Error(w, "Invalid JSON format", http.StatusBadRequest)
@@ -299,7 +299,7 @@ func (s *KubernetesClusterMiddleware) handleInsertCluster(w http.ResponseWriter,
299299

300300
w.WriteHeader(http.StatusCreated)
301301
json.NewEncoder(w).Encode(IDClusterDocument{ID: id})
302-
log.Printf("Cluster stored with ID: %s", id)
302+
//log.Printf("Cluster stored with ID: %s", id)
303303
}
304304

305305
func (s *KubernetesClusterMiddleware) handleGetClusterByID(w http.ResponseWriter, r *http.Request) {

0 commit comments

Comments
 (0)