Browse Source

ckdb - socket loglevel display only if no ID

master
kanoi 10 years ago
parent
commit
3106d74787
  1. 9
      src/ckdb.c

9
src/ckdb.c

@ -9192,6 +9192,14 @@ static void *socketer(__maybe_unused void *arg)
send_unix_msg(sockd, reply);
break;
case CMD_LOGLEVEL:
if (!*id) {
LOGDEBUG("Listener received loglevel, currently %d",
oldloglevel);
snprintf(reply, sizeof(reply),
"%s.%ld.ok.loglevel currently %d",
id, now.tv_sec,
pi->ckp->loglevel);
} else {
oldloglevel = pi->ckp->loglevel;
loglevel = atoi(id);
LOGDEBUG("Listener received loglevel %d currently %d A",
@ -9212,6 +9220,7 @@ static void *socketer(__maybe_unused void *arg)
// Do this twice since the loglevel may have changed
LOGDEBUG("Listener received loglevel %d currently %d B",
loglevel, oldloglevel);
}
send_unix_msg(sockd, reply);
break;
// Always process immediately:

Loading…
Cancel
Save