kore

Kore is a web application platform for writing scalable, concurrent web based processes in C or Python.
Commits | Files | Refs | README | LICENSE | git clone https://git.kore.io/kore.git

commit 6f31e14e83ff4701532acd02d182990a97f72601
parent 01cc981632e8521f0f51d694f957980ecd06e27a
Author: Joris Vink <joris@coders.se>
Date:   Fri, 17 Jan 2020 22:25:52 +0100

sprinkle kore_quiet around

Diffstat:
src/config.c | 3++-
src/msg.c | 6++++--
2 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/src/config.c b/src/config.c @@ -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); } diff --git a/src/msg.c b/src/msg.c @@ -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); }