From 12487e1a5413961d71b2ca12bf55d0351dab9ccb Mon Sep 17 00:00:00 2001 From: Benjamin Klum Date: Mon, 4 Nov 2024 09:54:04 +0100 Subject: [PATCH] #1301 Log warning if Stream Deck connection fails --- main/src/domain/backbone.rs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/main/src/domain/backbone.rs b/main/src/domain/backbone.rs index ff3e66921..7a6d855c7 100644 --- a/main/src/domain/backbone.rs +++ b/main/src/domain/backbone.rs @@ -208,8 +208,13 @@ impl Backbone { if decks.contains_key(&dev_id) { continue; } - if let Ok(con) = dev_id.connect() { - decks.insert(*dev_id, con); + match dev_id.connect() { + Ok(dev) => { + decks.insert(*dev_id, dev); + } + Err(e) => { + tracing::warn!(msg = "Couldn't connect to Stream Deck device", %e); + }, } } }