libseat/seatd: downgrade ENOENT log to info
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.
This commit is contained in:
parent
5535c2c3b1
commit
36f54adc2c
1 changed files with 5 additions and 1 deletions
|
@ -75,7 +75,11 @@ static int seatd_connect(void) {
|
||||||
strncpy(addr.unix.sun_path, path, sizeof addr.unix.sun_path - 1);
|
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);
|
socklen_t size = offsetof(struct sockaddr_un, sun_path) + strlen(addr.unix.sun_path);
|
||||||
if (connect(fd, &addr.generic, size) == -1) {
|
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);
|
close(fd);
|
||||||
return -1;
|
return -1;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue