systemctl: downgrade log level of ECONNREFUSED from system dbus.service
To suppress log message when 'systemctl poweroff' or friends invoked in rescue shell, which does not have dbus.service.
This commit is contained in:
@@ -48,7 +48,10 @@ int bus_connect_transport(BusTransport transport, const char *host, RuntimeScope
|
||||
int bus_connect_transport_systemd(BusTransport transport, const char *host, RuntimeScope runtime_scope, sd_bus **bus);
|
||||
|
||||
int bus_log_address_error(int r, BusTransport transport);
|
||||
int bus_log_connect_error(int r, BusTransport transport, RuntimeScope scope);
|
||||
int bus_log_connect_full(int log_level, int r, BusTransport transport, RuntimeScope scope);
|
||||
static inline int bus_log_connect_error(int r, BusTransport transport, RuntimeScope scope) {
|
||||
return bus_log_connect_full(LOG_ERR, r, transport, scope);
|
||||
}
|
||||
|
||||
#define bus_log_parse_error(r) \
|
||||
log_error_errno(r, "Failed to parse bus message: %m")
|
||||
|
||||
Reference in New Issue
Block a user