|
@@ -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),*) };
|