feat(rust): add warn log macro to no_std
@@ -57,23 +57,23 @@ pub use ockam_core::println;
#[cfg(not(feature = "std"))]
pub mod logging_no_std {
- /// info!
+ /// error!
#[macro_export]
- macro_rules! info {
+ macro_rules! error {
($($arg:tt)*) => (
ockam_core::println!($($arg)*);
)
}
- /// trace!
+ /// warn!
#[macro_export]
- macro_rules! trace {
+ macro_rules! warn {
($($arg:tt)*) => (
ockam_core::println!($($arg)*);
)
}
- /// error!
+ /// info!
#[macro_export]
- macro_rules! error {
+ macro_rules! info {
($($arg:tt)*) => (
ockam_core::println!($($arg)*);
)
@@ -85,4 +85,11 @@ pub mod logging_no_std {
ockam_core::println!($($arg)*);
)
}
+ /// trace!
+ #[macro_export]
+ macro_rules! trace {
+ ($($arg:tt)*) => (
+ ockam_core::println!($($arg)*);
+ )
+ }
}
