Skip to content

Commit

Permalink
HTTP: remove trace loggers in successful path
Browse files Browse the repository at this point in the history
  • Loading branch information
somolinosm committed Aug 31, 2021
1 parent f276d04 commit 3dea7c1
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions http/responses.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,12 @@ import (
)

func ToResponse(rawData interface{}, status int) events.APIGatewayV2HTTPResponse {
log.Debug("RawData: ", rawData)
var response string
jsonBytes, err := json.Marshal(rawData)
if err != nil {
log.Error("Error converting to json ", rawData)
response = "[]"
} else {
log.Debug("JSON:", string(jsonBytes))
response = string(jsonBytes)
if response == "null" {
response = "[]"
Expand Down

0 comments on commit 3dea7c1

Please sign in to comment.