From a686579cd1cdf669c7594251e3229a43712f0385 Mon Sep 17 00:00:00 2001 From: kanoi Date: Wed, 20 Aug 2014 17:40:08 +1000 Subject: [PATCH] ckdb - respect global loglevel --- src/ckdb.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/ckdb.c b/src/ckdb.c index 3e01b1b2..999a0f6f 100644 --- a/src/ckdb.c +++ b/src/ckdb.c @@ -1304,6 +1304,9 @@ void logmsg(int loglevel, const char *fmt, ...) char stamp[128]; char *extra = EMPTY; + if (loglevel > global_ckp->loglevel) + return; + now_t = time(NULL); localtime_r(&now_t, &tm); snprintf(stamp, sizeof(stamp),