Include the name of the calling thread when a command times out.
This commit is contained in:
parent
325e65db7f
commit
fb9aa672c9
|
@ -97,7 +97,7 @@ public class FaultTolerantPubSubConnection<K, V> {
|
|||
|
||||
private void recordCommandTimeout(final RedisCommandTimeoutException e) {
|
||||
commandTimeoutMeter.mark();
|
||||
log.warn("Command timeout exception ({}-pubsub)", this.name, e);
|
||||
log.warn("[{}] Command timeout exception ({}-pubsub)", Thread.currentThread().getName(), this.name, e);
|
||||
|
||||
if (wroteThreadDump.compareAndSet(false, true)) {
|
||||
ThreadDumpUtil.writeThreadDump();
|
||||
|
|
|
@ -163,7 +163,7 @@ public class FaultTolerantRedisCluster {
|
|||
|
||||
private void recordCommandTimeout(final RedisCommandTimeoutException e) {
|
||||
commandTimeoutMeter.mark();
|
||||
log.warn("Command timeout exception ({})", this.name, e);
|
||||
log.warn("[{}] Command timeout exception ({})", Thread.currentThread().getName(), this.name, e);
|
||||
|
||||
if (wroteThreadDump.compareAndSet(false, true)) {
|
||||
ThreadDumpUtil.writeThreadDump();
|
||||
|
|
Loading…
Reference in New Issue