Closed sam701 closed 7 years ago
gommon.log produces erroneous JSON output if the passed message contains newline characters or quotes.
gommon.log
e.Logger.Info(`hello "world"`)
produces
{"time":"2016-12-18T14:51:44+01:00","level":"INFO","prefix":"echo","file":"main.go","line":"28","message":"hello "world""}
This means all panics caught and logged by Echo as JSON are not parsable.
func someHandler(c echo.Context) error { panic("abcde") return c.String(http.StatusOK, "Hello, World!") }
Closed in #9
gommon.log
produces erroneous JSON output if the passed message contains newline characters or quotes.produces
This means all panics caught and logged by Echo as JSON are not parsable.