sprinkle kore_quiet around

This commit is contained in:
Joris Vink 2020-01-17 22:25:52 +01:00
parent 01cc981632
commit 6f31e14e83
2 changed files with 6 additions and 3 deletions

View File

@ -1777,7 +1777,8 @@ configure_deployment(char *value)
return (KORE_RESULT_ERROR);
}
kore_log(LOG_NOTICE, "deployment set to %s", value);
if (!kore_quiet)
kore_log(LOG_NOTICE, "deployment set to %s", value);
return (KORE_RESULT_OK);
}

View File

@ -265,8 +265,10 @@ msg_disconnected_worker(struct connection *c)
static void
msg_type_shutdown(struct kore_msg *msg, const void *data)
{
kore_log(LOG_NOTICE,
"shutdown requested by worker %u, going down", msg->src);
if (!kore_quiet) {
kore_log(LOG_NOTICE,
"shutdown requested by worker %u, going down", msg->src);
}
(void)raise(SIGQUIT);
}