lib

Core libraries for Radroots
git clone https://radroots.dev/git/lib.git
Log | Files | Refs | README | LICENSE

commit 7e0c8251a851aefa741a3910dad3441811385c96
parent da1d9a28f7b4564a59d819196365c54e4ae1497c
Author: triesap <tyson@radroots.org>
Date:   Thu,  5 Mar 2026 20:18:34 +0000

app-core: reflow runtime stop logging

- wrap log_info calls in stop for readability
- keep runtime shutdown behavior unchanged
- preserve existing logging messages
- tests: cargo check -p radroots-app-core; cargo test -p radroots-app-core

Diffstat:
Mcrates/app-core/src/runtime/mod.rs | 12+++++++++---
1 file changed, 9 insertions(+), 3 deletions(-)

diff --git a/crates/app-core/src/runtime/mod.rs b/crates/app-core/src/runtime/mod.rs @@ -70,7 +70,9 @@ impl RadrootsRuntime { pub fn stop(&self) { if self.shutting_down.swap(true, Ordering::SeqCst) { - let _ = crate::logging::log_info("Runtime stop already in progress or completed.".to_string()); + let _ = crate::logging::log_info( + "Runtime stop already in progress or completed.".to_string(), + ); return; } @@ -83,13 +85,17 @@ impl RadrootsRuntime { let _ = crate::logging::log_info("No runtime was active at stop.".to_string()); } } else { - let _ = crate::logging::log_info("Failed to acquire runtime lock during stop.".to_string()); + let _ = crate::logging::log_info( + "Failed to acquire runtime lock during stop.".to_string(), + ); } } #[cfg(not(feature = "rt"))] { - let _ = crate::logging::log_info("No managed runtime is available for this build.".to_string()); + let _ = crate::logging::log_info( + "No managed runtime is available for this build.".to_string(), + ); } }