summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRay Strode <rstrode@redhat.com>2014-07-21 09:13:45 -0400
committerRay Strode <rstrode@redhat.com>2014-07-21 09:13:45 -0400
commit7cfff72965bab364269118892a2bcbc69930676b (patch)
tree0c57c8fa45739395b167eebc9fad0aadacdce024
parent74aa92e3f30deb455e1fe9b543ea8a8b12f82d8b (diff)
downloadaccountsservice-7cfff72965bab364269118892a2bcbc69930676b.tar.gz
lib: log when a user changes from system account to normal and vice versa
This just adds some debug spew that might help with debugging an issue.
-rw-r--r--src/libaccountsservice/act-user-manager.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libaccountsservice/act-user-manager.c b/src/libaccountsservice/act-user-manager.c
index a4288e3..4741a9b 100644
--- a/src/libaccountsservice/act-user-manager.c
+++ b/src/libaccountsservice/act-user-manager.c
@@ -935,6 +935,8 @@ update_user (ActUserManager *manager,
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)) {
+ g_debug ("ActUserManager: %s is no longer a system account, treating as normal user",
+ describe_user (user));
g_hash_table_insert (manager->priv->normal_users_by_name,
g_strdup (act_user_get_user_name (user)),
g_object_ref (user));
@@ -947,6 +949,8 @@ update_user (ActUserManager *manager,
}
} else {
if (act_user_is_system_account (user)) {
+ g_debug ("ActUserManager: %s is no longer a normal account, treating as system user",
+ describe_user (user));
g_hash_table_insert (manager->priv->system_users_by_name,
g_strdup (act_user_get_user_name (user)),
g_object_ref (user));