~kennylevinsen/seatd-devel

This thread contains a patchset. You're looking at the original emails, but you may wish to use the patch review UI. Review patch
1

[PATCH seatd] libseat/seatd: downgrade ENOENT log to info

Details
Message ID
<GbtUJIT40CFHT3DAohHD9nOK3XI2aK6T0t6m5tzs@cp4-web-038.plabs.ch>
DKIM signature
pass
Download raw message
Patch: +5 -1
The socket is expected not to be found if seatd is not running.
In general other backends will be attempted after seatd. There is
already an error message in case no backend can be started.
---
 libseat/backend/seatd.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/libseat/backend/seatd.c b/libseat/backend/seatd.c
index 2dea3ca62501..07026ba0193e 100644
--- a/libseat/backend/seatd.c
+++ b/libseat/backend/seatd.c
@@ -75,7 +75,11 @@ static int seatd_connect(void) {
	strncpy(addr.unix.sun_path, path, sizeof addr.unix.sun_path - 1);
	socklen_t size = offsetof(struct sockaddr_un, sun_path) + strlen(addr.unix.sun_path);
	if (connect(fd, &addr.generic, size) == -1) {
		log_errorf("Could not connect to socket %s: %s", path, strerror(errno));
		if (errno == ENOENT) {
			log_infof("Could not connect to socket %s: %s", path, strerror(errno));
		} else {
			log_errorf("Could not connect to socket %s: %s", path, strerror(errno));
		}
		close(fd);
		return -1;
	};
-- 
2.31.1
Details
Message ID
<HSR4SQ.HBI8Y152GMHG1@kl.wtf>
In-Reply-To
<GbtUJIT40CFHT3DAohHD9nOK3XI2aK6T0t6m5tzs@cp4-web-038.plabs.ch> (view parent)
DKIM signature
pass
Download raw message
Applied, thanks!
Reply to thread Export thread (mbox)