From c5a014f856d09e0d12cb2e80802fd22878bb92b6 Mon Sep 17 00:00:00 2001 From: Elias Rohrer Date: Thu, 27 Mar 2025 09:12:58 +0100 Subject: [PATCH] Have the mock log facade not always print to `stdout` In #463 we introduced a mock logger that implements the `log` facade in tests. Previously, it defaulted to always print `TRACE`-level logs to `stdout`. This however can be very spammy (especially since it includes TRACE-level logs of `electrum_client` now). Here, we simply disable printing to `stdout` --- tests/common/logging.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/tests/common/logging.rs b/tests/common/logging.rs index 5d89474da..6bceac29a 100644 --- a/tests/common/logging.rs +++ b/tests/common/logging.rs @@ -48,7 +48,6 @@ impl LogFacadeLog for MockLogFacadeLogger { record.line().unwrap(), record.args() ); - println!("{message}"); self.logs.lock().unwrap().push(message); }