loop {
let (cnx, addr) = listener.accept().await.unwrap();
let Ok(stream) = tls_accepter.accept(cnx).await else {
- eprintln!(
- "WARNING during tls handshake connection from {}",
- addr
- );
+ warn!("During cls handshake connection from {}", addr);
continue;
};
let stream = TokioIo::new(stream);
};
match err.downcast_ref::<std::io::Error>() {
Some(err) if err.kind() == std::io::ErrorKind::UnexpectedEof => {}
- _ => eprintln!("WARNING serving connection{}: {}", scope, err),
+ _ => warn!("Serving connection{}: {}", scope, err),
}
}
}