mirror of
https://github.com/codex-storage/nim-codex.git
synced 2025-02-16 14:57:54 +00:00
[api] print raw storage request to trace log
This commit is contained in:
parent
1b658b2293
commit
dd67b74819
@ -196,6 +196,8 @@ proc initRestApi*(node: CodexNodeRef, conf: CodexConf): RestRouter =
|
||||
|
||||
let body = await request.getBody()
|
||||
|
||||
trace "storage request received", body = string.fromBytes(body)
|
||||
|
||||
without params =? StorageRequestParams.fromJson(body), error:
|
||||
return RestApiResponse.error(Http400, error.msg)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user