From 6fdd44675c44fe0514e7e16f3344c62d5e62e846 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Wed, 16 Mar 2022 19:21:24 +0100 Subject: [PATCH] Minor log severity adjustments. Two small changes which improve the error output of para_audiod. The first makes sure we get a message when hitting ctrl+c when audiod is running in forground mode. The second decreases the severity of the log message which is shown when a client connection terminates, since this is not necessarily an error. --- audiod.c | 2 +- client_common.c | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/audiod.c b/audiod.c index 838f375f..113f1132 100644 --- a/audiod.c +++ b/audiod.c @@ -1068,7 +1068,7 @@ static int signal_post_select(struct sched *s, void *context) case SIGINT: case SIGTERM: case SIGHUP: - PARA_NOTICE_LOG("received signal %d\n", signum); + PARA_WARNING_LOG("terminating on signal %d\n", signum); task_notify_all(s, E_AUDIOD_SIGNAL); return -E_AUDIOD_SIGNAL; } diff --git a/client_common.c b/client_common.c index 94a6e865..f8ee80c9 100644 --- a/client_common.c +++ b/client_common.c @@ -452,8 +452,7 @@ out: return 0; btr_remove_node(&ct->btrn[0]); btr_remove_node(&ct->btrn[1]); - if (ret != -E_SERVER_CMD_SUCCESS && ret != -E_SERVER_CMD_FAILURE) - PARA_ERROR_LOG("%s\n", para_strerror(-ret)); + PARA_NOTICE_LOG("closing connection (%s)\n", para_strerror(-ret)); if (ct->scc.fd >= 0) { close(ct->scc.fd); ct->scc.fd = -1; -- 2.39.5