From dafea54dbb44fb3bf079edd658cbbec3d7bb52e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rodolphe=20Br=C3=A9ard?= Date: Wed, 25 Nov 2020 18:53:50 +0100 Subject: [PATCH] Log exclusively on stderr OpenSMTPD reads filter responses on stdout, hence there must not be any log written to this file descriptor. --- examples/counter.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/counter.rs b/examples/counter.rs index 2f36db6..45fff57 100644 --- a/examples/counter.rs +++ b/examples/counter.rs @@ -39,7 +39,7 @@ impl Filter for MyCounter { } fn main() { - TermLogger::init(LevelFilter::Debug, Config::default(), TerminalMode::Mixed).unwrap(); + TermLogger::init(LevelFilter::Debug, Config::default(), TerminalMode::Stderr).unwrap(); let mut my_counter: MyCounter = Default::default(); run_filter(&mut my_counter); }