improved logging

This commit is contained in:
Fl1tzi 2023-04-05 00:05:47 +02:00
parent dee6193d1e
commit 1ef58a5088

View file

@ -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