log everything to stderr
This commit is contained in:
parent
933ead13b0
commit
27dd021e4e
|
@ -38,7 +38,7 @@ pub async fn serve(port: Option<i32>, tz: Option<String>) -> Result<(), Box<dyn
|
||||||
loop {
|
loop {
|
||||||
let (mut sock, addr) = listen.accept().await?;
|
let (mut sock, addr) = listen.accept().await?;
|
||||||
|
|
||||||
println!("{}: connected", addr);
|
eprintln!("{}: connected", addr);
|
||||||
tokio::spawn(async move {
|
tokio::spawn(async move {
|
||||||
if let Err(e) = read_req(&mut sock).await {
|
if let Err(e) = read_req(&mut sock).await {
|
||||||
eprintln!("{}: {}", addr, e);
|
eprintln!("{}: {}", addr, e);
|
||||||
|
|
Loading…
Reference in New Issue