Skip to content

Commit

Permalink
fix: incorrect rest payload log messages used
Browse files Browse the repository at this point in the history
  • Loading branch information
tucats committed Jan 25, 2025
1 parent c9c4226 commit 098d909
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion server/server/admin.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
}
Expand Down
2 changes: 1 addition & 1 deletion server/tables/rows.go
Original file line number Diff line number Diff line change
Expand Up @@ -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})

Expand Down

0 comments on commit 098d909

Please sign in to comment.