|
|
|
@ -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:
|
|
|
|
|