mirror of
https://github.com/AuxXxilium/eudev.git
synced 2024-12-22 15:03:34 +07:00
dbus: be a bit more explicit about which bus connection failed
This commit is contained in:
parent
e965d56dac
commit
266e525cc1
4
dbus.c
4
dbus.c
@ -494,7 +494,7 @@ int bus_init_system(Manager *m) {
|
||||
m->system_bus = m->api_bus;
|
||||
else {
|
||||
if (!(m->system_bus = dbus_bus_get_private(DBUS_BUS_SYSTEM, &error))) {
|
||||
log_error("Failed to get D-Bus connection, retrying later: %s", error.message);
|
||||
log_debug("Failed to get system D-Bus connection, retrying later: %s", error.message);
|
||||
dbus_error_free(&error);
|
||||
return 0;
|
||||
}
|
||||
@ -551,7 +551,7 @@ int bus_init_api(Manager *m) {
|
||||
m->api_bus = m->system_bus;
|
||||
else {
|
||||
if (!(m->api_bus = dbus_bus_get_private(m->running_as == MANAGER_SESSION ? DBUS_BUS_SESSION : DBUS_BUS_SYSTEM, &error))) {
|
||||
log_debug("Failed to get D-Bus connection, retrying later: %s", error.message);
|
||||
log_debug("Failed to get API D-Bus connection, retrying later: %s", error.message);
|
||||
dbus_error_free(&error);
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user