From a7daeccd22786f6fcf6ec0245e64c5bfff472f8c Mon Sep 17 00:00:00 2001 From: Sven Friedrich Date: Mon, 24 Jun 2024 13:43:47 +0200 Subject: [PATCH] fix: log feature compilation and log level --- a653rs-router-linux/src/main.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/a653rs-router-linux/src/main.rs b/a653rs-router-linux/src/main.rs index 3d1877f..4b2e331 100644 --- a/a653rs-router-linux/src/main.rs +++ b/a653rs-router-linux/src/main.rs @@ -57,7 +57,7 @@ extern "C" fn entry_point() { let mut state = router.router::(cfg).unwrap(); loop { let res = state.forward::(&ApexLinuxPartition); - #[cfg(feauture = "log")] + #[cfg(feature = "log")] { use a653rs_router::prelude::Error; use log::{debug, trace}; @@ -69,7 +69,7 @@ extern "C" fn entry_point() { Err(e) => debug!("Failed to forward message: {}", e), } } - #[cfg(not(feauture = "log"))] + #[cfg(not(feature = "log"))] let _res = res; } } @@ -78,7 +78,7 @@ fn main() { ApexLogger::install_panic_hook(); #[cfg(feature = "log")] { - ApexLogger::install_logger(log::LevelFilter::Trace).unwrap(); + ApexLogger::install_logger(log::LevelFilter::Debug).unwrap(); } RouterPartition.run() }