Update cluster debug log to include human readable packet type (#9361)

This commit is contained in:
Madelyn Olson 2021-08-12 14:50:09 -07:00 committed by GitHub
parent 1221f7cd5e
commit 2402f5a7a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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. */