diff options
author | Manos Pitsidianakis <el13635@mail.ntua.gr> | 2019-09-21 21:25:21 +0300 |
---|---|---|
committer | Manos Pitsidianakis <el13635@mail.ntua.gr> | 2019-09-21 21:29:33 +0300 |
commit | 9563007069122e5bbbadb8d1a8750a9eecf1f65a (patch) | |
tree | 5433a8e860b2bb98c54d2ff11b741d8dc4995405 /melib/src/lib.rs | |
parent | 6e75160b70496d61988fee31d4c28e47f367a518 (diff) |
Turn off debug tracing prints in stderr by default
Diffstat (limited to 'melib/src/lib.rs')
-rw-r--r-- | melib/src/lib.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/melib/src/lib.rs b/melib/src/lib.rs index c908aec9..1a459469 100644 --- a/melib/src/lib.rs +++ b/melib/src/lib.rs @@ -25,7 +25,7 @@ pub mod dbg { macro_rules! debug { ($val:literal) => { { - if cfg!(debug_assertions) { + if cfg!(feature="debug-tracing") { eprint!( "[{:?}] {}:{}_{}: ", std::thread::current() @@ -42,7 +42,7 @@ pub mod dbg { } }; ($val:expr) => { - if cfg!(debug_assertions) { + if cfg!(feature="debug-tracing") { let stringify = stringify!($val); // Use of `match` here is intentional because it affects the lifetimes // of temporaries - https://stackoverflow.com/a/48732525/1063961 @@ -67,7 +67,7 @@ pub mod dbg { } }; ($fmt:literal, $($arg:tt)*) => { - if cfg!(debug_assertions) { + if cfg!(feature="debug-tracing") { eprint!( "[{:?}] {}:{}_{}: ", std::thread::current() |