Skip to content

Commit 405a607

Browse files
authored
Merge pull request #21299 from henrybear327/robustness/clean_up_runWatchLoop_log
Robustness: reduce log noise in runWatchLoop
2 parents ff2e00f + 9481a30 commit 405a607

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

tests/robustness/traffic/traffic.go

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -401,10 +401,9 @@ func runWatchLoop(ctx context.Context, p RunWatchLoopParam, cfg watchLoopConfig)
401401
if err != nil {
402402
return
403403
}
404-
err = runWatch(ctx, p, cfg)
405-
if err != nil {
406-
p.Logger.Error("runWatchLoop: Get failed", zap.Error(err))
407-
}
404+
// Client.get may fail when the blackhole is injected.
405+
// We suppress logging for these expected failures to avoid polluting the logs.
406+
_ = runWatch(ctx, p, cfg)
408407
}
409408
}
410409

0 commit comments

Comments
 (0)