diff options
author | Dimitri Staessens <[email protected]> | 2023-11-30 13:04:28 +0100 |
---|---|---|
committer | Sander Vrijders <[email protected]> | 2023-11-30 21:11:29 +0100 |
commit | 22686c1cded1d837b3e7677b7b7b7b6cc8592878 (patch) | |
tree | ea6ddcba6001bb1ba90deccb981f2bb9650088b5 | |
parent | 346b054ee32a9f7b8491f842709f72cc8d1f3f2e (diff) | |
download | ouroboros-22686c1cded1d837b3e7677b7b7b7b6cc8592878.tar.gz ouroboros-22686c1cded1d837b3e7677b7b7b7b6cc8592878.zip |
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 <[email protected]>
Signed-off-by: Sander Vrijders <[email protected]>
-rw-r--r-- | src/irmd/main.c | 9 |
1 files changed, 7 insertions, 2 deletions
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; } |