1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2025-01-07 17:17:44 +03:00

update-utmp: downgrade log level of ignored failure

(cherry picked from commit 86da32ee0c)
(cherry picked from commit 0b45822938)
This commit is contained in:
Yu Watanabe 2023-04-07 04:34:54 +09:00 committed by Luca Boccassi
parent a3a892eaac
commit 47639e7d77

View File

@ -239,8 +239,8 @@ static int run(int argc, char *argv[]) {
/* If the kernel lacks netlink or audit support, don't worry about it. */
c.audit_fd = audit_open();
if (c.audit_fd < 0)
log_full_errno(IN_SET(errno, EAFNOSUPPORT, EPROTONOSUPPORT) ? LOG_DEBUG : LOG_ERR,
errno, "Failed to connect to audit log: %m");
log_full_errno(IN_SET(errno, EAFNOSUPPORT, EPROTONOSUPPORT) ? LOG_DEBUG : LOG_WARNING,
errno, "Failed to connect to audit log, ignoring: %m");
#endif
r = bus_connect_system_systemd(&c.bus);
if (r < 0)