From a9006401f0f155a5f998edf0583ad0439b0220bb Mon Sep 17 00:00:00 2001 From: Paramadon Date: Tue, 10 Dec 2024 12:19:03 -0500 Subject: [PATCH] removing unnecessary logs --- extension/agenthealth/handler/stats/provider/statuscode.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/extension/agenthealth/handler/stats/provider/statuscode.go b/extension/agenthealth/handler/stats/provider/statuscode.go index 41a4c0f86b..2633a41ce5 100644 --- a/extension/agenthealth/handler/stats/provider/statuscode.go +++ b/extension/agenthealth/handler/stats/provider/statuscode.go @@ -5,7 +5,6 @@ package provider import ( "context" - "log" "net/http" "sync" "time" @@ -79,9 +78,8 @@ func (sp *StatusCodeProvider) startProcessing() { func (sp *StatusCodeProvider) EnqueueStatusCode(operation string, statusCode int) { select { case sp.statusCodeChan <- statusCodeEntry{operation: operation, statusCode: statusCode}: - log.Printf("Successfully enqueued status code %d for operation %s", statusCode, operation) default: - log.Printf("Warning: StatusCode channel full, dropping status code %d for operation %s", statusCode, operation) + return } } @@ -168,4 +166,4 @@ func (h *StatusCodeHandler) HandleResponse(ctx context.Context, r *http.Response } h.StatusCodeProvider.EnqueueStatusCode(operation, r.StatusCode) -} \ No newline at end of file +}