switched print to log message

This commit is contained in:
Nickiel12 2023-03-11 14:32:10 -08:00
parent 16994cc32a
commit 45cec560f6

View file

@ -1,8 +1,9 @@
use crate::message_types::{UIRequest}; use crate::message_types::UIRequest;
use log::{debug, error, info, trace, warn, LevelFilter};
/// Pass a /// Pass a
pub fn handle_request(socket_message: String) -> Result<UIRequest, serde_json::Error> { pub fn handle_request(socket_message: String) -> Result<UIRequest, serde_json::Error> {
println!("Recieved a socket message: {}", socket_message); info!("Recieved a socket message: {}", socket_message);
let request: UIRequest = serde_json::from_str(&socket_message)?; let request: UIRequest = serde_json::from_str(&socket_message)?;
Ok(request) Ok(request)