From e924a4e869d5bbbc8306611c750c424866d5afef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jon=20H=C3=A4ggblad?= Date: Mon, 16 Jan 2023 10:40:07 +0100 Subject: [PATCH] wip --- .../node/client_handling/websocket/connection_handler/mod.rs | 4 ++-- gateway/src/node/client_handling/websocket/listener.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gateway/src/node/client_handling/websocket/connection_handler/mod.rs b/gateway/src/node/client_handling/websocket/connection_handler/mod.rs index 2bab732ae7..6b4b223dcb 100644 --- a/gateway/src/node/client_handling/websocket/connection_handler/mod.rs +++ b/gateway/src/node/client_handling/websocket/connection_handler/mod.rs @@ -95,7 +95,7 @@ pub(crate) async fn handle_connection( _ => (), } - trace!("Managed to perform websocket handshake!"); + log::debug!("Managed to perform websocket handshake!"); match shutdown .run_future(handle.perform_initial_authentication()) @@ -112,5 +112,5 @@ pub(crate) async fn handle_connection( Some(Some(auth_handle)) => auth_handle.listen_for_requests(shutdown).await, } - trace!("The handler is done!"); + log::debug!("The handler is done!"); } diff --git a/gateway/src/node/client_handling/websocket/listener.rs b/gateway/src/node/client_handling/websocket/listener.rs index a50f07f1d8..ab120a9464 100644 --- a/gateway/src/node/client_handling/websocket/listener.rs +++ b/gateway/src/node/client_handling/websocket/listener.rs @@ -70,7 +70,7 @@ impl Listener { connection = tcp_listener.accept() => { match connection { Ok((socket, remote_addr)) => { - trace!("received a socket connection from {remote_addr}"); + debug!("received a socket connection from {remote_addr}"); // TODO: I think we *REALLY* need a mechanism for having a maximum number of connected // clients or spawned tokio tasks -> perhaps a worker system? let handle = FreshHandler::new(