From 8abbbb4625857f4a0f95712b3b9c080d30282aca Mon Sep 17 00:00:00 2001 From: Harshavardhana Date: Thu, 8 Dec 2022 07:54:21 -0800 Subject: [PATCH] avoid printing random logs (#2489) --- restapi/ws_handle.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/restapi/ws_handle.go b/restapi/ws_handle.go index 9dcb09bf3..e475a852c 100644 --- a/restapi/ws_handle.go +++ b/restapi/ws_handle.go @@ -20,7 +20,6 @@ import ( "context" "encoding/json" "fmt" - "log" "net" "net/http" "strconv" @@ -604,9 +603,6 @@ func (wsc *wsMinioClient) objectManager(session *models.Principal) { // start listing and writing to web socket go func() { - defer func() { - log.Println("Closing listing goroutine:", messageRequest.RequestID) - }() objectRqConfigs, err := getObjectsOptionsFromReq(messageRequest) if err != nil { LogInfo(fmt.Sprintf("Error during Objects OptionsParse %s", err.Error()))