Skip to content

Commit

Permalink
removing unnecessary logs
Browse files Browse the repository at this point in the history
  • Loading branch information
Paramadon committed Dec 10, 2024
1 parent 504eabe commit a900640
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions extension/agenthealth/handler/stats/provider/statuscode.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ package provider

import (
"context"
"log"
"net/http"
"sync"
"time"
Expand Down Expand Up @@ -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
}
}

Expand Down Expand Up @@ -168,4 +166,4 @@ func (h *StatusCodeHandler) HandleResponse(ctx context.Context, r *http.Response
}

h.StatusCodeProvider.EnqueueStatusCode(operation, r.StatusCode)
}
}

0 comments on commit a900640

Please sign in to comment.