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),