From 45cec560f6becede3ef5391b314538259160f9b1 Mon Sep 17 00:00:00 2001 From: Nickiel12 Date: Sat, 11 Mar 2023 14:32:10 -0800 Subject: [PATCH] switched print to log message --- src/server_handling.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/server_handling.rs b/src/server_handling.rs index 9157ed2..81fefb0 100644 --- a/src/server_handling.rs +++ b/src/server_handling.rs @@ -1,8 +1,9 @@ -use crate::message_types::{UIRequest}; +use crate::message_types::UIRequest; +use log::{debug, error, info, trace, warn, LevelFilter}; /// Pass a pub fn handle_request(socket_message: String) -> Result { - println!("Recieved a socket message: {}", socket_message); + info!("Recieved a socket message: {}", socket_message); let request: UIRequest = serde_json::from_str(&socket_message)?; Ok(request)