mirror of
https://github.com/systemd/systemd.git
synced 2024-10-31 07:51:21 +03:00
logind: downgrade message about /run/utmp missing to LOG_DEBUG
This isn't really anything to really complain about, let's debug log about this, and continue quietly as if utmp was empty.
This commit is contained in:
parent
4f538d7b22
commit
9830d71614
@ -721,7 +721,9 @@ int manager_read_utmp(Manager *m) {
|
|||||||
errno = 0;
|
errno = 0;
|
||||||
u = getutxent();
|
u = getutxent();
|
||||||
if (!u) {
|
if (!u) {
|
||||||
if (errno != 0)
|
if (errno == ENOENT)
|
||||||
|
log_debug_errno(errno, _PATH_UTMPX " does not exist, ignoring.");
|
||||||
|
else if (errno != 0)
|
||||||
log_warning_errno(errno, "Failed to read " _PATH_UTMPX ", ignoring: %m");
|
log_warning_errno(errno, "Failed to read " _PATH_UTMPX ", ignoring: %m");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user