Update cluster debug log to include human readable packet type (#9361)
This commit is contained in:
+2
-2
@@ -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. */
|
||||
|
||||
Reference in New Issue
Block a user