mirror of https://mirror.osredm.com/root/redis.git
Verbose log enhancement: print client info when client exit (#9053)
It could be useful for debugging to know which client got disconnected.
This commit is contained in:
parent
e16d3eb998
commit
119121c739
|
@ -2166,7 +2166,11 @@ void readQueryFromClient(connection *conn) {
|
|||
return;
|
||||
}
|
||||
} else if (nread == 0) {
|
||||
serverLog(LL_VERBOSE, "Client closed connection");
|
||||
if (server.verbosity <= LL_VERBOSE) {
|
||||
sds info = catClientInfoString(sdsempty(), c);
|
||||
serverLog(LL_VERBOSE, "Client closed connection %s", info);
|
||||
sdsfree(info);
|
||||
}
|
||||
freeClientAsync(c);
|
||||
return;
|
||||
} else if (c->flags & CLIENT_MASTER) {
|
||||
|
|
Loading…
Reference in New Issue