From 86da32ee0c081d5d740ed5ff2d1d58c0d697c324 Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Fri, 7 Apr 2023 04:34:54 +0900 Subject: [PATCH] update-utmp: downgrade log level of ignored failure --- src/update-utmp/update-utmp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/update-utmp/update-utmp.c b/src/update-utmp/update-utmp.c index e6739db1c32..5656ca2761b 100644 --- a/src/update-utmp/update-utmp.c +++ b/src/update-utmp/update-utmp.c @@ -229,8 +229,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) -- 2.47.3