From 59f26a7e758ce7b228db47920f982a55109b2121 Mon Sep 17 00:00:00 2001 From: Dreaded_X Date: Sat, 15 Mar 2025 05:53:17 +0100 Subject: [PATCH] Use tracing for logging --- src/lldap.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lldap.rs b/src/lldap.rs index e4eaa64..017e1fe 100644 --- a/src/lldap.rs +++ b/src/lldap.rs @@ -1,6 +1,7 @@ use anyhow::{anyhow, Context}; use lldap_auth::{opaque, registration}; use surf::Client; +use tracing::debug; pub async fn change_password(client: &Client, user_id: &str, password: &str) -> anyhow::Result<()> { let mut rng = rand::rngs::OsRng; @@ -42,7 +43,7 @@ pub async fn change_password(client: &Client, user_id: &str, password: &str) -> .await .map_err(|e| anyhow!(e))?; - println!("Changed '{user_id}' password successfully"); + debug!("Changed '{user_id}' password successfully"); Ok(()) }