Преглед на файлове

wip:日志包打印类型更改

wangkaiyue преди 2 години
родител
ревизия
ffb7724ac1
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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{} {