Log exclusively on stderr

OpenSMTPD reads filter responses on stdout, hence there must not be any
log written to this file descriptor.
This commit is contained in:
Rodolphe Bréard 2020-11-25 18:53:50 +01:00
parent c431d5e9cc
commit dafea54dbb

View file

@ -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);
}