updates for v0.4.0 release. Slight refactor/organization.

This commit is contained in:
Jason Kulatunga
2022-05-09 14:50:35 -07:00
parent 54178eaaf0
commit 381a6799cc
10 changed files with 205 additions and 106 deletions
+1 -1
View File
@@ -89,7 +89,7 @@ func LoggerMiddleware(logger logrus.FieldLogger) gin.HandlerFunc {
entry.Info(msg)
}
}
if strings.HasPrefix(path, "/api/") {
if strings.Contains(path, "/api/") {
//only debug log request/response from api endpoint.
if len(reqBody) > 0 {
entry.WithField("bodyType", "request").Debugln(reqBody) // Print request body