mirror of
https://github.com/minio/minio.git
synced 2025-11-09 05:34:56 -05:00
do not log client canceled events (#17838)
This commit is contained in:
@@ -377,7 +377,11 @@ func (h *Target) Send(ctx context.Context, entry interface{}) error {
|
||||
select {
|
||||
case h.logCh <- entry:
|
||||
case <-ctx.Done():
|
||||
return ctx.Err()
|
||||
// return error only for context timedout.
|
||||
if errors.Is(ctx.Err(), context.DeadlineExceeded) {
|
||||
return ctx.Err()
|
||||
}
|
||||
return nil
|
||||
default:
|
||||
nWorkers := atomic.LoadInt64(&h.workers)
|
||||
if nWorkers < maxWorkers {
|
||||
|
||||
Reference in New Issue
Block a user