From 60ce6e29ae9321a260695f60297b32f4b7b475de Mon Sep 17 00:00:00 2001 From: Ilya Zlobintsev Date: Sat, 18 Jan 2025 10:44:19 +0200 Subject: [PATCH] chore: better trace logging for process events --- lact-daemon/src/server/profiles.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lact-daemon/src/server/profiles.rs b/lact-daemon/src/server/profiles.rs index a6cc182..7ca8881 100644 --- a/lact-daemon/src/server/profiles.rs +++ b/lact-daemon/src/server/profiles.rs @@ -179,8 +179,6 @@ pub async fn run_watcher(handler: Handler, mut command_rx: mpsc::Receiver match process::get_pid_info(pid) { Ok(info) => { + trace!("process {pid} ({}) started", info.name); if info.name.as_ref() == gamemode::PROCESS_NAME { info!("detected gamemode daemon, reloading profile watcher"); should_reload = true; @@ -202,6 +201,7 @@ async fn handle_profile_event(event: &ProfileWatcherEvent, handler: &Handler) { } }, ProfileWatcherEvent::Process(PEvent::Exit(pid)) => { + trace!("process {pid} exited"); state.remove_process(*pid.as_ref()); } ProfileWatcherEvent::Gamemode(PEvent::Exec(pid)) => {