Skip to content

Commit

Permalink
#1301 Log warning if Stream Deck connection fails
Browse files Browse the repository at this point in the history
  • Loading branch information
helgoboss committed Nov 4, 2024
1 parent da68913 commit 12487e1
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions main/src/domain/backbone.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
},
}
}
}
Expand Down

0 comments on commit 12487e1

Please sign in to comment.