]> git.tue.mpg.de Git - paraslash.git/commitdiff
Minor log severity adjustments.
authorAndre Noll <maan@tuebingen.mpg.de>
Wed, 16 Mar 2022 18:21:24 +0000 (19:21 +0100)
committerAndre Noll <maan@tuebingen.mpg.de>
Tue, 17 May 2022 14:44:59 +0000 (16:44 +0200)
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
client_common.c

index 838f375fe6df2c2d96c4bfa2aa41d28e64c29f72..113f1132e96c92f5045c4acdc72211728230137b 100644 (file)
--- 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;
        }
index 94a6e86544e63824664b114cc400161d4e223684..f8ee80c9d7a01956769284eaa117f1606c59cd76 100644 (file)
@@ -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;