Skip to content

Commit 1cb4ab9

Browse files
Enable maximum logging
1 parent 6b88bde commit 1cb4ab9

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

moonraker-rs/src/moonraker_connection.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -607,7 +607,7 @@ impl MoonrakerConnection
607607
}
608608
else
609609
{
610-
//eprintln!("Failed to parse JSON-RPC response: {}", payload);
610+
eprintln!("Failed to parse JSON-RPC response: {}", payload);
611611
}
612612
}
613613

src/main.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ async fn main() -> Result<(), Box<dyn Error>> {
4242
let ui_weak_3 = ui.as_weak();
4343

4444
tokio::spawn(async move {
45+
tokio::time::sleep(Duration::from_secs(3)).await;
4546
moonraker_connection.connection_loop().await;
4647
});
4748

@@ -51,7 +52,7 @@ async fn main() -> Result<(), Box<dyn Error>> {
5152
{
5253
Ok(event) => {
5354
// Forward event to Slint UI
54-
//println!("Received Moonraker event: {:?}", event);
55+
println!("Received Moonraker event: {:?}", event);
5556
//connection_ref.get_listener();
5657

5758
if let GeneralEvent::Connected = &*event

0 commit comments

Comments
 (0)