aliyun_oss_rust_sdk/
macros.rs1#[cfg(feature = "debug-print")]
2#[macro_export]
3macro_rules! error {
4 ($name:expr)=>{
5 tracing::error!($name);
6 };
7 ($name:expr $(,$arg:tt)+ $(,)?) => {
8 tracing::error!($name, $($arg),*);
9 };
10}
11#[cfg(not(feature = "debug-print"))]
12#[macro_export]
13macro_rules! error {
14 ($name:expr)=>{};
15 ($name:expr $(,$arg:tt)+ $(,)?) => {};
16}
17
18#[cfg(feature = "debug-print")]
19#[macro_export]
20macro_rules! debug {
21 ($name:expr)=>{
22 tracing::debug!($name);
23 };
24 ($name:expr $(,$arg:tt)+ $(,)?) => {
25 tracing::debug!($name, $($arg),*);
26 };
27}
28
29#[cfg(not(feature = "debug-print"))]
30#[macro_export]
31macro_rules! debug {
32 ($name:expr)=>{};
33 ($name:expr $(,$arg:tt)+ $(,)?) => {};
34}