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:
parent
c431d5e9cc
commit
dafea54dbb
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Reference in a new issue