mirror of
https://github.com/signalapp/Signal-Server.git
synced 2026-12-01 07:16:47 +00:00
Include Redis cluster and shard address in circuit breaker log
This commit is contained in:
1 parent
18ef3da261
commit
a87690d817
1 file changed
+1
-1
+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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user