From 04035342b0d7826b762ffadf09ae2982f17eaf36 Mon Sep 17 00:00:00 2001 From: kanarus Date: Sat, 31 May 2025 21:52:35 +0900 Subject: [PATCH 1/2] handle session timeout log as `DEBUG`, not `WARNING` --- ohkami/src/session/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ohkami/src/session/mod.rs b/ohkami/src/session/mod.rs index ce30f5516..b8f2681fe 100644 --- a/ohkami/src/session/mod.rs +++ b/ohkami/src/session/mod.rs @@ -76,7 +76,7 @@ impl Session { match read_result { None => { - crate::WARNING!("\ + crate::DEBUG!("\ Session timeouted. In Ohkami, Keep-Alive timeout \ is set to 42 seconds by default and is configurable \ by `OHKAMI_KEEPALIVE_TIMEOUT` environment variable.\ @@ -139,7 +139,7 @@ impl Session { tcp_stream ).await; if aborted { - crate::WARNING!("\ + crate::DEBUG!("\ WebSocket session aborted by timeout. In Ohkami, \ WebSocket timeout is set to 3600 seconds (1 hour) \ by default and is configurable by `OHKAMI_WEBSOCKET_TIMEOUT` \ From 8ce2222a5d2fc62b611e2acd18bfe5ad58fd8374 Mon Sep 17 00:00:00 2001 From: kanarus Date: Sat, 31 May 2025 22:08:44 +0900 Subject: [PATCH 2/2] WebSocket timeout as WARNING, Keep-Alive timeout as DEBUG --- ohkami/src/session/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ohkami/src/session/mod.rs b/ohkami/src/session/mod.rs index b8f2681fe..051535386 100644 --- a/ohkami/src/session/mod.rs +++ b/ohkami/src/session/mod.rs @@ -77,7 +77,7 @@ impl Session { match read_result { None => { crate::DEBUG!("\ - Session timeouted. In Ohkami, Keep-Alive timeout \ + Reached Keep-Alive timeout. In Ohkami, Keep-Alive timeout \ is set to 42 seconds by default and is configurable \ by `OHKAMI_KEEPALIVE_TIMEOUT` environment variable.\ "); @@ -139,7 +139,7 @@ impl Session { tcp_stream ).await; if aborted { - crate::DEBUG!("\ + crate::WARNING!("\ WebSocket session aborted by timeout. In Ohkami, \ WebSocket timeout is set to 3600 seconds (1 hour) \ by default and is configurable by `OHKAMI_WEBSOCKET_TIMEOUT` \