Explorar o código

wip:日志包打印类型更改

wangkaiyue %!s(int64=2) %!d(string=hai) anos
pai
achega
ffb7724ac1
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      core/logs/serverLogs.go

+ 1 - 1
core/logs/serverLogs.go

@@ -93,7 +93,7 @@ func (s *serverLog) RecordLogAndNotice(r *ghttp.Request, err error) {
 		s.SDb.AddLogToTask(PaseReq(handlerCtx, r))
 	}
 	//日志输出
-	log.WithContext(r.Context()).Error(contextDetail)
+	log.WithContext(r.Context()).Info(contextDetail)
 }
 
 func PaseReq(ctx *router.GContext, r *ghttp.Request) map[string]interface{} {