From dd67b748195806b19af116c42925bc364012e5ce Mon Sep 17 00:00:00 2001 From: Eric <5089238+emizzle@users.noreply.github.com> Date: Mon, 31 Jul 2023 15:52:00 +1000 Subject: [PATCH] [api] print raw storage request to trace log --- codex/rest/api.nim | 2 ++ 1 file changed, 2 insertions(+) diff --git a/codex/rest/api.nim b/codex/rest/api.nim index 651d370d..070cb3e6 100644 --- a/codex/rest/api.nim +++ b/codex/rest/api.nim @@ -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)