commit d003630cf31d3347c6a222ecc3c50f6cbf87ff1b
parent 2f3fd70feeb7e6252883c60c23bbb265231fafd7
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:
1 file changed, 9 insertions(+), 3 deletions(-)
diff --git a/crates/field_core/src/runtime/mod.rs b/crates/field_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(),
+ );
}
}