update-utmp: downgrade log level of ignored failure
authorYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 6 Apr 2023 19:34:54 +0000 (04:34 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 24 May 2023 11:06:10 +0000 (20:06 +0900)
src/update-utmp/update-utmp.c

index e6739db1c32ed704ea4ebcadc0f12c92b46dc847..5656ca2761bec32491b3e1e1ed52c1e72fbecb70 100644 (file)
@@ -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)