mirror of
https://github.com/status-im/status-desktop.git
synced 2025-02-23 20:18:47 +00:00
chore: logs
This commit is contained in:
parent
b1052acf84
commit
1256084197
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user