Surround expanded json log output with {}

This commit is contained in:
Michael Hohn
2024-02-21 11:30:42 -08:00
committed by =Michael Hohn
parent 16010d1a35
commit 26e2aa28e7
5 changed files with 2054 additions and 8 deletions

View File

@@ -146,7 +146,7 @@ func LogBody(body io.ReadCloser, from string) io.ReadCloser {
if err != nil {
log.Printf(">> %s body: %v", from, string(buf))
} else {
log.Printf(">> %s body: %v", from, pjson)
log.Printf(">> %s body: {\n%v\n}", from, pjson)
}
goto BodyDone
}