log everything to stderr

This commit is contained in:
mos 2024-03-28 20:37:37 +01:00
parent 933ead13b0
commit 27dd021e4e
1 changed files with 1 additions and 1 deletions

View File

@ -38,7 +38,7 @@ pub async fn serve(port: Option<i32>, tz: Option<String>) -> Result<(), Box<dyn
loop {
let (mut sock, addr) = listen.accept().await?;
println!("{}: connected", addr);
eprintln!("{}: connected", addr);
tokio::spawn(async move {
if let Err(e) = read_req(&mut sock).await {
eprintln!("{}: {}", addr, e);