added logging

This commit is contained in:
Adrian 2025-01-25 16:36:10 -06:00
parent f7eba7c257
commit 382c07b87a
1 changed files with 1 additions and 0 deletions

View File

@ -92,6 +92,7 @@ function UpdateUsbConfigModal({
const syncUsbConfig = useCallback(() => { const syncUsbConfig = useCallback(() => {
send("getUsbConfig", {}, resp => { send("getUsbConfig", {}, resp => {
if ("result" in resp) { if ("result" in resp) {
console.info("Successfully synced USB Config: ", resp.result);
setUsbConfigState(resp.result as UsbConfigState); setUsbConfigState(resp.result as UsbConfigState);
} else { } else {
console.error("Failed to load USB Config:", resp.error); console.error("Failed to load USB Config:", resp.error);