From 098d90932c3cfae2cdbeffcdfe208a55325600d0 Mon Sep 17 00:00:00 2001 From: Tom Cole Date: Sat, 25 Jan 2025 23:51:33 +0000 Subject: [PATCH] fix: incorrect rest payload log messages used --- server/server/admin.go | 2 +- server/tables/rows.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/server/server/admin.go b/server/server/admin.go index 0e695adb..c807cd88 100644 --- a/server/server/admin.go +++ b/server/server/admin.go @@ -116,7 +116,7 @@ func LogonHandler(session *Session, w http.ResponseWriter, r *http.Request) int // Convert the response to JSON and write it to the response and we're done. b, _ := json.MarshalIndent(response, "", " ") if ui.IsActive(ui.RestLogger) { - ui.Log(ui.RestLogger, "rest.response.body", + ui.Log(ui.RestLogger, "rest.response.payload", "session", session.ID, "body", string(b)) } diff --git a/server/tables/rows.go b/server/tables/rows.go index b3cead6b..2182870b 100644 --- a/server/tables/rows.go +++ b/server/tables/rows.go @@ -150,7 +150,7 @@ func InsertRows(session *server.Session, w http.ResponseWriter, r *http.Request) _, _ = io.Copy(buf, r.Body) rawPayload := buf.String() - ui.Log(ui.RestLogger, "rest.request.body", ui.A{ + ui.Log(ui.RestLogger, "rest.request.payload", ui.A{ "session": session.ID, "body": rawPayload})