mirror of https://mirror.osredm.com/root/redis.git
Update cluster debug log to include human readable packet type (#9361)
This commit is contained in:
parent
1221f7cd5e
commit
2402f5a7a1
|
@ -1786,8 +1786,8 @@ int clusterProcessPacket(clusterLink *link) {
|
|||
|
||||
if (type < CLUSTERMSG_TYPE_COUNT)
|
||||
server.cluster->stats_bus_messages_received[type]++;
|
||||
serverLog(LL_DEBUG,"--- Processing packet of type %d, %lu bytes",
|
||||
type, (unsigned long) totlen);
|
||||
serverLog(LL_DEBUG,"--- Processing packet of type %s, %lu bytes",
|
||||
clusterGetMessageTypeString(type), (unsigned long) totlen);
|
||||
|
||||
/* Perform sanity checks */
|
||||
if (totlen < 16) return 1; /* At least signature, version, totlen, count. */
|
||||
|
|
Loading…
Reference in New Issue