@ -5,6 +5,18 @@ import (
"time"
)
func ErrorLogger() HandlerFunc {
return func(c *Context) {
defer func() {
if len(c.Errors) > 0 {
log.Println(c.Errors)
c.JSON(-1, c.Errors)
}
}()
c.Next()
func Logger() HandlerFunc {
The note is not visible to the blocked user.