update log format --all replace

This commit is contained in:
engigu
2024-01-13 12:04:40 +08:00
parent c0241df60c
commit e76782451b
9 changed files with 41 additions and 37 deletions
+2 -2
View File
@@ -3,7 +3,7 @@ package middleware
import (
"fmt"
"math"
"message-nest/pkg/logging"
"net/http"
"net/url"
"time"
@@ -53,7 +53,7 @@ func LogMiddleware(notLogged ...string) gin.HandlerFunc {
return
}
entry := logging.Logger.WithFields(logrus.Fields{
entry := logrus.WithFields(logrus.Fields{
////"hostname": hostname,
//"statusCode": statusCode,
//"latency": latency,