logging: re-enable print to stderr ifdef MELI_DEBUG_STDERR

async-cursors
Manos Pitsidianakis 2023-07-13 16:49:50 +03:00
parent 866166eb8e
commit 5b5869a2ec
Signed by: Manos Pitsidianakis
GPG Key ID: 7729C7707F7E09D0
1 changed files with 5 additions and 1 deletions

View File

@ -180,7 +180,11 @@ impl StderrLogger {
level: Arc::new(AtomicU8::new(level as u8)),
print_level: true,
print_module_names: true,
debug_dest: Destination::None,
debug_dest: if std::env::var("MELI_DEBUG_STDERR").is_ok() {
Destination::Stderr
} else {
Destination::None
},
}
};
#[cfg(test)]