aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFuwn <[email protected]>2026-01-21 08:31:12 +0000
committerFuwn <[email protected]>2026-01-21 08:31:12 +0000
commit5165fd076b93723b3d16a856623f5a63d392c649 (patch)
treee23bf5b85e0d2c0dd8a13acd361b1e013c6b6cb9
parentrefactor(router): Replace unwrap() with expect() for better panic messages (diff)
downloadwindmark-5165fd076b93723b3d16a856623f5a63d392c649.tar.xz
windmark-5165fd076b93723b3d16a856623f5a63d392c649.zip
fix(router): Use warn! macro instead of println! for stream errors
-rw-r--r--src/router.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/router.rs b/src/router.rs
index 91d9e88..495463c 100644
--- a/src/router.rs
+++ b/src/router.rs
@@ -381,7 +381,7 @@ impl Router {
match quick_stream {
Ok(mut stream) => {
if let Err(e) = std::pin::Pin::new(&mut stream).accept().await {
- println!("stream accept error: {e:?}");
+ warn!("stream accept error: {e:?}");
}
let router_instance = Self {