Skip to content

Commit 19abf0f

Browse files
committed
fix: error when udp response can't be written
Instead of using a "debug" log level.
1 parent b23d64b commit 19abf0f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/udp/server.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ use std::net::SocketAddr;
33
use std::sync::Arc;
44

55
use aquatic_udp_protocol::Response;
6-
use log::{debug, info};
6+
use log::{debug, error, info};
77
use tokio::net::UdpSocket;
88

99
use crate::tracker;
@@ -71,7 +71,7 @@ impl Udp {
7171
Udp::send_packet(socket, &remote_addr, &inner[..position]).await;
7272
}
7373
Err(_) => {
74-
debug!("could not write response to bytes.");
74+
error!("could not write response to bytes.");
7575
}
7676
}
7777
}

0 commit comments

Comments
 (0)