Include Redis cluster and shard address in circuit breaker log

This commit is contained in:
Katherine authored and GitHub committed 2025-07-07 12:12:44 -04:00
1 parent 18ef3da261
commit a87690d817
1 file changed
+1 -1
@@ -248,7 +248,7 @@ public class LettuceShardCircuitBreaker implements NettyCustomizer {
// RedisNoScriptException doesn’t indicate a fault the breaker can protect
if (throwable != null && !(throwable instanceof RedisNoScriptException)) {
breaker.onError(durationNanos, TimeUnit.NANOSECONDS, throwable);
logger.warn("Command completed with error", throwable);
logger.warn("Command completed with error for: {}/{}", clusterName, shardAddress, throwable);
} else {
breaker.onSuccess(durationNanos, TimeUnit.NANOSECONDS);
}