wangshan 3 өдөр өмнө
parent
commit
9e08693c4a

+ 3 - 3
internal/logic/middleware/middleware.go

@@ -49,7 +49,7 @@ func SaveLogTask() {
 
 // 访问日志
 func (s *sMiddleware) Log(r *ghttp.Request) {
-	g.Log().Info(r.GetCtx(), "--------00000-------")
+	g.Log().Error(r.GetCtx(), "--------00000-------")
 	timeNow := time.Now()
 	data := map[string]interface{}{
 		"date":      timeNow.Unix(),
@@ -151,10 +151,10 @@ func (s *sMiddleware) SetSeoRefer(r *ghttp.Request) {
 	val := r.Cookie.Get("SESSIONID")
 	log.Println(val.String(), "-------- log  session  id    -------")
 	sessionId := val.String()
-	g.Log().Info(r.GetCtx(), val.String(), "------+++++++++------", sessionId)
+	g.Log().Error(r.GetCtx(), val.String(), "------+++++++++------", sessionId)
 	if sessionId != "" {
 		val = r.Cookie.Get("SeoRefer")
-		g.Log().Info(r.GetCtx(), val.String(), "------sessionId------", sessionId)
+		g.Log().Error(r.GetCtx(), val.String(), "------sessionId------", sessionId)
 		if val.IsNil() {
 			r.Cookie.Set("SeoRefer", r.Referer())
 		}