mirror of https://github.com/jetkvm/kvm.git
added logging
This commit is contained in:
parent
f7eba7c257
commit
382c07b87a
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue