1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2024-12-25 23:21:33 +03:00

logind: be more verbose on errors

This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2013-08-24 10:52:23 -04:00
parent 335c46b598
commit 042f598892
2 changed files with 25 additions and 7 deletions

View File

@ -480,7 +480,8 @@ static int session_start_scope(Session *s) {
r = manager_start_scope(s->manager, scope, s->leader, s->user->slice, description, "systemd-user-sessions.service", kill_mode, &error, &job);
if (r < 0) {
log_error("Failed to start session scope: %s %s", bus_error(&error, r), error.name);
log_error("Failed to start session scope %s: %s %s",
scope, bus_error(&error, r), error.name);
dbus_error_free(&error);
free(scope);

View File

@ -1423,12 +1423,29 @@ int manager_startup(Manager *m) {
return r;
/* Deserialize state */
manager_enumerate_devices(m);
manager_enumerate_seats(m);
manager_enumerate_users(m);
manager_enumerate_sessions(m);
manager_enumerate_inhibitors(m);
manager_enumerate_buttons(m);
r = manager_enumerate_devices(m);
if (r < 0)
log_warning("Device enumeration failed: %s", strerror(-r));
r = manager_enumerate_seats(m);
if (r < 0)
log_warning("Seat enumeration failed: %s", strerror(-r));
r = manager_enumerate_users(m);
if (r < 0)
log_warning("User enumeration failed: %s", strerror(-r));
r = manager_enumerate_sessions(m);
if (r < 0)
log_warning("Session enumeration failed: %s", strerror(-r));
r = manager_enumerate_inhibitors(m);
if (r < 0)
log_warning("Inhibitor enumeration failed: %s", strerror(-r));
r = manager_enumerate_buttons(m);
if (r < 0)
log_warning("Button enumeration failed: %s", strerror(-r));
/* Remove stale objects before we start them */
manager_gc(m, false);