From b4297580a744f655ba0f2577808fb9050d0a73ef Mon Sep 17 00:00:00 2001 From: Jade Rowland Date: Sat, 9 Sep 2023 01:34:35 -0400 Subject: [PATCH] changed warning to error --- src-tauri/src/midibridge.rs | 9 ++++++--- src-tauri/src/oscbridge.rs | 2 +- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/src-tauri/src/midibridge.rs b/src-tauri/src/midibridge.rs index 34936dcb..5c1149e7 100644 --- a/src-tauri/src/midibridge.rs +++ b/src-tauri/src/midibridge.rs @@ -54,7 +54,10 @@ pub fn init( let mut port_names = Vec::new(); //TODO: Send these print messages to the UI logger instead of the rust console so the user can see them if out_ports.len() == 0 { - logger.log(" No MIDI devices found. Connect a device or enable IAC Driver.".to_string(), "".to_string()); + logger.log( + " No MIDI devices found. Connect a device or enable IAC Driver to enable midi.".to_string(), + "".to_string() + ); // logger(window, " No MIDI devices found. Connect a device or enable IAC Driver.".to_string(), None); return; } @@ -103,10 +106,10 @@ pub fn init( if out_con.is_some() { // process the message if let Err(err) = (&mut out_con.unwrap()).send(&message.message) { - logger.log(format!("Midi message send error: {}", err), "warning".to_string()); + logger.log(format!("Midi message send error: {}", err), "error".to_string()); } } else { - logger.log(format!("failed to find midi device: {}", message.requestedport), "warning".to_string()); + logger.log(format!("failed to find midi device: {}", message.requestedport), "error".to_string()); } return false; }); diff --git a/src-tauri/src/oscbridge.rs b/src-tauri/src/oscbridge.rs index 64d411b1..6060cd9d 100644 --- a/src-tauri/src/oscbridge.rs +++ b/src-tauri/src/oscbridge.rs @@ -70,7 +70,7 @@ pub fn init( if result.is_err() { logger.log( format!("OSC Message failed to send, the server might no longer be available"), - "warning".to_string() + "error".to_string() ); } return false;