show log in testing
parent
5185a105c3
commit
40a4a7dd2e
|
@ -1,9 +1,17 @@
|
|||
#[cfg(not(test))]
|
||||
#[cfg(feature = "log")]
|
||||
macro_rules! net_log {
|
||||
(trace, $($arg:expr),*) => { log::trace!($($arg),*) };
|
||||
(debug, $($arg:expr),*) => { log::debug!($($arg),*) };
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
#[cfg(feature = "log")]
|
||||
macro_rules! net_log {
|
||||
(trace, $($arg:expr),*) => { println!($($arg),*) };
|
||||
(debug, $($arg:expr),*) => { println!($($arg),*) };
|
||||
}
|
||||
|
||||
#[cfg(feature = "defmt")]
|
||||
macro_rules! net_log {
|
||||
(trace, $($arg:expr),*) => { defmt::trace!($($arg),*) };
|
||||
|
|
Loading…
Reference in New Issue