Commit 0a0cf0ca authored by Ray Strode's avatar Ray Strode

libaccountsservice: sprinkle some extra debug spew around

I'm trying to get a grip on a crasher, so this commit introduces
a few more debug messages.
parent 48601848
......@@ -684,11 +684,14 @@ on_user_changed (ActUser *user,
ActUserManager *manager)
{
if (manager->priv->is_loaded) {
g_debug ("ActUserManager: %s changed",
g_debug ("ActUserManager: sending user-changed signal for %s",
describe_user (user));
g_signal_emit (manager, signals[USER_CHANGED], 0, user);
g_debug ("ActUserManager: sent user-changed signal for %s",
describe_user (user));
update_user (manager, user);
}
}
......@@ -736,6 +739,7 @@ on_get_seat_id_finished (GObject *object,
load_seat_incrementally (manager);
out:
g_debug ("ActUserManager: unrefing manager owned by GetSeatId request");
g_object_unref (manager);
}
......@@ -932,6 +936,9 @@ update_user (ActUserManager *manager,
{
const char *username;
g_debug ("ActUserManager: updating user %s",
describe_user (user));
username = act_user_get_user_name (user);
if (g_hash_table_lookup (manager->priv->system_users_by_name, username) != NULL) {
if (!act_user_is_system_account (user)) {
......@@ -1142,6 +1149,7 @@ on_get_current_session_finished (GObject *object,
queue_load_seat_incrementally (manager);
out:
g_debug ("ActUserManager: unrefing manager owned by GetCurrentSession request");
g_object_unref (manager);
}
......@@ -1242,6 +1250,7 @@ unload_new_session (ActUserManagerNewSession *new_session)
manager->priv->new_sessions = g_slist_remove (manager->priv->new_sessions,
new_session);
g_debug ("ActUserManager: unrefing manager owned by new session that's now unloaded");
new_session->manager = NULL;
g_object_unref (manager);
}
......@@ -1486,6 +1495,7 @@ on_list_cached_users_finished (GObject *object,
g_object_unref (manager->priv->accounts_proxy);
manager->priv->accounts_proxy = NULL;
g_debug ("ActUserManager: unrefing manager owned by failed ListCachedUsers call");
g_object_unref (manager);
return;
}
......@@ -1533,6 +1543,7 @@ on_list_cached_users_finished (GObject *object,
}
}
g_debug ("ActUserManager: unrefing manager owned by finished ListCachedUsers call");
g_object_unref (manager);
}
......@@ -2070,6 +2081,7 @@ on_console_kit_session_proxy_gotten (GObject *object, GAsyncResult *result, gpoi
load_seat_incrementally (manager);
out:
g_debug ("ActUserManager: unrefing manager owned by ConsoleKit proxy getter");
g_object_unref (manager);
}
......@@ -2161,6 +2173,7 @@ free_fetch_user_request (ActUserManagerFetchUserRequest *request)
g_free (request->object_path);
g_free (request->description);
g_debug ("ActUserManager: unrefing manager owned by fetch user request");
g_object_unref (manager);
g_slice_free (ActUserManagerFetchUserRequest, request);
......@@ -2484,6 +2497,7 @@ on_get_sessions_finished (GObject *object,
maybe_set_is_loaded (manager);
out:
g_debug ("ActUserManager: unrefing manager owned by GetSessions request");
g_object_unref (manager);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment