mirror of
https://codeberg.org/Fl1tzi/microdeck.git
synced 2024-05-19 11:10:20 +00:00
improved logging
This commit is contained in:
parent
dee6193d1e
commit
1ef58a5088
|
@ -251,8 +251,7 @@ async fn init_devices(
|
||||||
// if the index of the button is higher than the button count
|
// if the index of the button is higher than the button count
|
||||||
if button_count < button.index {
|
if button_count < button.index {
|
||||||
warn!(
|
warn!(
|
||||||
"The button {} does not exist on Deck {}; skipping",
|
"This button does not exist on device",
|
||||||
button.index, device.1
|
|
||||||
);
|
);
|
||||||
continue 'device;
|
continue 'device;
|
||||||
}
|
}
|
||||||
|
@ -275,7 +274,7 @@ async fn init_devices(
|
||||||
}
|
}
|
||||||
device_managers.push(DeviceManager::new(device.1, deck, buttons_keys).await);
|
device_managers.push(DeviceManager::new(device.1, deck, buttons_keys).await);
|
||||||
} else {
|
} else {
|
||||||
info!("Deck {} is not configured; skipping", device.1);
|
info!("Deck is not configured");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
device_managers
|
device_managers
|
||||||
|
|
Loading…
Reference in a new issue