chore: logs

This commit is contained in:
Igor Sirotin 2025-02-20 12:08:25 +03:00
parent b1052acf84
commit 1256084197
No known key found for this signature in database
GPG Key ID: 425E227CAAB81F95

View File

@ -70,10 +70,12 @@ QtObject:
discard discard
proc initializeRPC(self: Service) {.slot.} = proc initializeRPC(self: Service) {.slot.} =
var response = keycard_go.keycardInitializeRPC() let response = keycard_go.keycardInitializeRPC()
debug "initializeRPC response", response
proc start*(self: Service, storageDir: string) = proc start*(self: Service, storageDir: string) =
discard callRPC("Start", %*{"storageFilePath": storageDir}) let response = callRPC("Start", %*{"storageFilePath": storageDir})
debug "callRPC response", response
proc stop*(self: Service) = proc stop*(self: Service) =
discard callRPC("Stop") discard callRPC("Stop")
@ -265,4 +267,4 @@ QtObject:
let error = Json.decode(rpcResponseObj["error"].getStr, RpcError) let error = Json.decode(rpcResponseObj["error"].getStr, RpcError)
raise newException(RpcException, "Error factory reset: " & error.message) raise newException(RpcException, "Error factory reset: " & error.message)
except Exception as e: except Exception as e:
error "error factory reset", err=e.msg error "error factory reset", err=e.msg