mirror of
https://github.com/logos-storage/nim-json-rpc.git
synced 2026-01-09 09:03:10 +00:00
Fix bad debug log
This commit is contained in:
parent
e42864ef7a
commit
23911ad80e
@ -234,7 +234,7 @@ macro rpc*(server: RpcServer, path: string, body: untyped): untyped =
|
||||
try:
|
||||
`procBody`
|
||||
except:
|
||||
debug "Error occurred within RPC " & `path` & ": ", getCurrentExceptionMsg()
|
||||
debug "Error occurred within RPC ", path = `path`, errorMessage = getCurrentExceptionMsg()
|
||||
if parameters.hasReturnType:
|
||||
let returnType = parameters[0]
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user