From 983985573709bf9eafd49fef1cbaf0fffea79fc9 Mon Sep 17 00:00:00 2001 From: Nathan Gill Date: Mon, 29 Dec 2025 23:31:59 +0000 Subject: [PATCH] change log severity for authentication messages --- src/auth.rs | 6 +++--- src/state.rs | 7 +++---- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/src/auth.rs b/src/auth.rs index 75e4080..6acd497 100644 --- a/src/auth.rs +++ b/src/auth.rs @@ -5,7 +5,7 @@ use anyhow::{Result, anyhow}; use atomic_enum::atomic_enum; use pam_rs::{Client, PamFlag}; use tokio::sync::{mpsc, oneshot}; -use tracing::{info, warn}; +use tracing::{debug, warn}; use zeroize::Zeroizing; use crate::config::NLockConfig; @@ -57,7 +57,7 @@ pub async fn run_auth_loop(config: AuthConfig, auth_rx: mpsc::Receiver { - warn!("Auth error: {e}"); + debug!("Auth error: {e}"); let _ = responder.send(Err(e)); } } diff --git a/src/state.rs b/src/state.rs index 61c2e1d..1f9bd9e 100644 --- a/src/state.rs +++ b/src/state.rs @@ -11,8 +11,7 @@ use mio::Poll; use nix::sys::eventfd::EventFd; use nix::sys::timerfd::TimerFd; use tokio::sync::{mpsc, oneshot}; -use tracing::debug; -use tracing::{info, warn}; +use tracing::{debug, warn}; use wayland_client::protocol::{wl_region, wl_subcompositor, wl_subsurface}; use wayland_client::{ Connection, Dispatch, QueueHandle, delegate_noop, @@ -164,14 +163,14 @@ impl NLockState { match resp_rx.await { Ok(Ok(())) => { - info!("Authentication completed sucecssfully"); + debug!("Authentication completed sucecssfully"); auth_state.store(AuthState::Success, Ordering::Relaxed); running.store(false, Ordering::Relaxed); let _ = state_ev.write(1); } Ok(Err(e)) => { - warn!("PAM authentication error: {e}"); + debug!("PAM authentication error: {e}"); auth_state.store(AuthState::Fail, Ordering::Relaxed); state_changed.store(true, Ordering::Relaxed);