Skip to content

Commit

Permalink
PR review
Browse files Browse the repository at this point in the history
  • Loading branch information
KendallWeihe committed Aug 19, 2024
1 parent 1ccf916 commit e29e9e6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@
members = [
"crates/web5",
"crates/web5_cli",
"crates/web5_proc_macros",
"bindings/web5_uniffi",
"bindings/web5_uniffi_wrapper", "crates/web5_proc_macros",
"bindings/web5_uniffi_wrapper",
]
default-members = [
"crates/web5",
Expand Down
14 changes: 7 additions & 7 deletions crates/web5/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,17 @@ pub(crate) mod logging {
macro_rules! log_dbg {
($msg:literal $(, $arg:tt)*) => {
if let Some(ref level) = *$crate::LOG_LEVEL {
if level.to_lowercase() == "debug" {
println!("[DEBUG] {}: {}", web5_proc_macros::git_sha!(), format!($msg, $($arg)*));
}
if level.to_lowercase() == "debug" {
println!("[DEBUG] {}: {}", web5_proc_macros::git_sha!(), format!($msg, $($arg)*));
}
}
};
($closure:expr) => {
if let Some(ref level) = *$crate::LOG_LEVEL {
if level.to_lowercase() == "debug" {
let msg = $closure();
println!("[DEBUG] {}: {}", web5_proc_macros::git_sha!(), msg);
}
if level.to_lowercase() == "debug" {
let msg = $closure();
println!("[DEBUG] {}: {}", web5_proc_macros::git_sha!(), msg);
}
}
};
}
Expand Down

0 comments on commit e29e9e6

Please sign in to comment.