From c7fbd106354a59cccdd0d4379c0448e70dfb5f3b Mon Sep 17 00:00:00 2001 From: Shailesh Vashishth Date: Tue, 31 Mar 2026 11:17:00 +0530 Subject: [PATCH] update hypervisor/mod.rs to use trace crate for logging Signed-off-by: Shailesh Vashishth --- src/hyperlight_host/src/hypervisor/mod.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/hyperlight_host/src/hypervisor/mod.rs b/src/hyperlight_host/src/hypervisor/mod.rs index 4a508100c..be1a15c22 100644 --- a/src/hyperlight_host/src/hypervisor/mod.rs +++ b/src/hyperlight_host/src/hypervisor/mod.rs @@ -170,7 +170,7 @@ impl LinuxInterruptHandle { break; } - log::info!("Sending signal to kill vcpu thread..."); + tracing::info!("Sending signal to kill vcpu thread..."); sent_signal = true; // Acquire ordering to synchronize with the Release store in set_tid() // This ensures we see the correct tid value for the currently running vcpu @@ -376,7 +376,7 @@ impl InterruptHandleImpl for WindowsInterruptHandle { guard.dropped = true; } Err(e) => { - log::error!("Failed to acquire partition_state write lock: {}", e); + tracing::error!("Failed to acquire partition_state write lock: {}", e); } } } @@ -404,7 +404,7 @@ impl InterruptHandle for WindowsInterruptHandle { let guard = match self.partition_state.read() { Ok(guard) => guard, Err(e) => { - log::error!("Failed to acquire partition_state read lock: {}", e); + tracing::error!("Failed to acquire partition_state read lock: {}", e); return false; } }; @@ -432,7 +432,7 @@ impl InterruptHandle for WindowsInterruptHandle { let guard = match self.partition_state.read() { Ok(guard) => guard, Err(e) => { - log::error!("Failed to acquire partition_state read lock: {}", e); + tracing::error!("Failed to acquire partition_state read lock: {}", e); return false; } }; @@ -449,7 +449,7 @@ impl InterruptHandle for WindowsInterruptHandle { match self.partition_state.read() { Ok(guard) => guard.dropped, Err(e) => { - log::error!("Failed to acquire partition_state read lock: {}", e); + tracing::error!("Failed to acquire partition_state read lock: {}", e); true // Assume dropped if we can't acquire lock } }