|
|
@ -9192,6 +9192,14 @@ static void *socketer(__maybe_unused void *arg) |
|
|
|
send_unix_msg(sockd, reply); |
|
|
|
send_unix_msg(sockd, reply); |
|
|
|
break; |
|
|
|
break; |
|
|
|
case CMD_LOGLEVEL: |
|
|
|
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; |
|
|
|
oldloglevel = pi->ckp->loglevel; |
|
|
|
loglevel = atoi(id); |
|
|
|
loglevel = atoi(id); |
|
|
|
LOGDEBUG("Listener received loglevel %d currently %d A", |
|
|
|
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
|
|
|
|
// Do this twice since the loglevel may have changed
|
|
|
|
LOGDEBUG("Listener received loglevel %d currently %d B", |
|
|
|
LOGDEBUG("Listener received loglevel %d currently %d B", |
|
|
|
loglevel, oldloglevel); |
|
|
|
loglevel, oldloglevel); |
|
|
|
|
|
|
|
} |
|
|
|
send_unix_msg(sockd, reply); |
|
|
|
send_unix_msg(sockd, reply); |
|
|
|
break; |
|
|
|
break; |
|
|
|
// Always process immediately:
|
|
|
|
// Always process immediately:
|
|
|
|