Move request parameters logging into api request logger

This commit is contained in:
Dan Sosedoff
2022-12-06 12:24:21 -06:00
parent dda70352c0
commit 2f9d737515
3 changed files with 7 additions and 13 deletions

View File

@@ -1,7 +1,6 @@
package api
import (
"log"
"strings"
"github.com/gin-gonic/gin"
@@ -49,14 +48,6 @@ func dbCheckMiddleware() gin.HandlerFunc {
}
}
// Middleware to print out request parameters and body for debugging
func requestInspectMiddleware() gin.HandlerFunc {
return func(c *gin.Context) {
err := c.Request.ParseForm()
log.Println("Request params:", err, c.Request.Form)
}
}
// Middleware to inject CORS headers
func corsMiddleware() gin.HandlerFunc {
return func(c *gin.Context) {