Skip to content

Commit

Permalink
fix: log feature compilation and log level
Browse files Browse the repository at this point in the history
  • Loading branch information
sevenautumns authored and dadada committed Jun 24, 2024
1 parent facfe38 commit a7daecc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions a653rs-router-linux/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ extern "C" fn entry_point() {
let mut state = router.router::<INPUTS, OUTPUTS, MTU>(cfg).unwrap();
loop {
let res = state.forward::<MTU, _>(&ApexLinuxPartition);
#[cfg(feauture = "log")]
#[cfg(feature = "log")]
{
use a653rs_router::prelude::Error;
use log::{debug, trace};
Expand All @@ -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;
}
}
Expand All @@ -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()
}

0 comments on commit a7daecc

Please sign in to comment.