SLOWLOG: log offending client address and name.

This commit is contained in:
antirez
2017-06-15 12:57:54 +02:00
parent ab9d398835
commit 53cb27b1d7
4 changed files with 27 additions and 7 deletions

View File

@ -2214,7 +2214,7 @@ void call(client *c, int flags) {
char *latency_event = (c->cmd->flags & CMD_FAST) ?
"fast-command" : "command";
latencyAddSampleIfNeeded(latency_event,duration/1000);
slowlogPushEntryIfNeeded(c->argv,c->argc,duration);
slowlogPushEntryIfNeeded(c,c->argv,c->argc,duration);
}
if (flags & CMD_CALL_STATS) {
c->lastcmd->microseconds += duration;