From 22686c1cded1d837b3e7677b7b7b7b6cc8592878 Mon Sep 17 00:00:00 2001 From: Dimitri Staessens Date: Thu, 30 Nov 2023 13:04:28 +0100 Subject: irmd: Don't log an error when server quits The revision of the IRMd caused it to log an error when an application terminates and closes the unix socket (EPIPE) or the IRMd shutds down (EIRMD). These are expected and correct behaviour. Replaced the error logs with debug logs. Signed-off-by: Dimitri Staessens Signed-off-by: Sander Vrijders --- src/irmd/main.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src/irmd') diff --git a/src/irmd/main.c b/src/irmd/main.c index f1e0e203..5e58052d 100644 --- a/src/irmd/main.c +++ b/src/irmd/main.c @@ -2314,8 +2314,13 @@ static void * mainloop(void * o) goto fail_msg; } - if (ret_msg->result == -EPIPE || ret_msg->result == -EIRMD) { - log_err("Failed to execute command: %d.", ret_msg->result); + if (ret_msg->result == -EPIPE) { + log_dbg("Terminated command: application closed socket."); + goto fail; + } + + if (ret_msg->result == -EIRMD) { + log_dbg("Terminated command: IRMd not in running state."); goto fail; } -- cgit v1.2.3