diff options
author | antirez <antirez@gmail.com> | 2011-06-30 15:47:15 +0200 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2011-06-30 15:47:15 +0200 |
commit | 35a6044140deb1c70dc92c5d454745142faeeb37 (patch) | |
tree | a862b8ca390ce278fffea74fecdc59ed10c5b129 /src/slowlog.c | |
parent | 63d62eb786aacf25e0533cf328d95dc45806dcba (diff) | |
download | redis-35a6044140deb1c70dc92c5d454745142faeeb37.tar.gz |
slow log configuration implemented
Diffstat (limited to 'src/slowlog.c')
-rw-r--r-- | src/slowlog.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/slowlog.c b/src/slowlog.c index ecaf65080..a257a17bf 100644 --- a/src/slowlog.c +++ b/src/slowlog.c @@ -54,6 +54,7 @@ void slowlogInit(void) { * This function will make sure to trim the slow log accordingly to the * configured max length. */ void slowlogPushEntryIfNeeded(robj **argv, int argc, long long duration) { + if (server.slowlog_log_slower_than < 0) return; /* Slowlog disabled */ if (duration > server.slowlog_log_slower_than) listAddNodeHead(server.slowlog,slowlogCreateEntry(argv,argc,duration)); |