Skip to content

Commit 756c0f5

Browse files
feat(install-ids): Add additional trace logs
1 parent f1b7ca6 commit 756c0f5

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/lib.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,8 @@ pub async fn link_user_ids(config: Config, skipped_errors: &SkippedErrors) -> Re
272272
users.into_iter().map(|user| (user.email.clone(), user)).collect()
273273
};
274274

275+
tracing::trace!("Found LDAP users: {:?}", ldap_users);
276+
275277
let mut zitadel_users =
276278
pin!(zitadel_client.list_users_raw().context("failed to query Zitadel users")?);
277279

@@ -295,6 +297,8 @@ pub async fn link_user_ids(config: Config, skipped_errors: &SkippedErrors) -> Re
295297
continue;
296298
};
297299

300+
tracing::trace!("Trying to match user with email {}", email);
301+
298302
if !seen_emails.insert(email.to_owned()) {
299303
// Zitadel doesn't actually allow this case, but it's here
300304
// just in case
@@ -322,6 +326,8 @@ pub async fn link_user_ids(config: Config, skipped_errors: &SkippedErrors) -> Re
322326
continue;
323327
};
324328

329+
tracing::debug!("Found LDAP user `{}`", ldap_id);
330+
325331
match nick {
326332
Some(nick) if nick.is_empty() => {
327333
let mut request = UpdateHumanUserRequest::new();

0 commit comments

Comments
 (0)