Skip to content

Commit 8908e8f

Browse files
feat: Log successful outcomes better
1 parent 5673def commit 8908e8f

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

Diff for: src/zitadel.rs

+11
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,8 @@ impl Zitadel {
161161
new.email.clone(),
162162
)
163163
.await?;
164+
165+
tracing::warn!("User email/login changed for {} -> {}", old.email, new.email);
164166
};
165167

166168
if old.first_name != new.first_name || old.last_name != new.last_name {
@@ -211,6 +213,8 @@ impl Zitadel {
211213
.await?;
212214
};
213215

216+
tracing::info!("Successfully updated user {}", old.email);
217+
214218
Ok(())
215219
}
216220

@@ -226,6 +230,8 @@ impl Zitadel {
226230
None => bail!("Could not find user with ldap uid '{uid}' for deletion"),
227231
}
228232

233+
tracing::info!("Successfully deleted user {}", String::from_utf8_lossy(ldap_id));
234+
229235
Ok(())
230236
}
231237

@@ -250,6 +256,9 @@ impl Zitadel {
250256
} else {
251257
bail!("could not find user `{}` for deletion", user.email);
252258
}
259+
260+
tracing::info!("Successfully deleted user {}", user.email);
261+
253262
Ok(())
254263
}
255264

@@ -288,6 +297,8 @@ impl Zitadel {
288297
)
289298
.await?;
290299

300+
tracing::info!("Successfully imported user {}", user.email);
301+
291302
Ok(())
292303
}
293304
}

0 commit comments

Comments
 (0)