switched print to log message
This commit is contained in:
parent
16994cc32a
commit
45cec560f6
1 changed files with 3 additions and 2 deletions
|
@ -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<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)?;
|
||||
|
||||
Ok(request)
|
||||
|
|
Loading…
Reference in a new issue