Explorar o código

fix:日志记录调整,不换行记录了

Roc %!s(int64=3) %!d(string=hai) anos
pai
achega
d4e4e0233f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      controller/response/base.go

+ 1 - 1
controller/response/base.go

@@ -35,7 +35,7 @@ func result(code int, resultData ResultData, c *gin.Context) {
 	logSlice = append(logSlice, fmt.Sprint("Url:", c.Request.RequestURI))
 	logSlice = append(logSlice, fmt.Sprint("Token:", token))
 	logSlice = append(logSlice, fmt.Sprint("resultData:", string(jsonByte)))
-	global.LOG.Info(strings.Join(logSlice, "\n"))
+	global.LOG.Info(strings.Join(logSlice, ""))
 
 	//测试环境,数据不进行加密
 	/*if global.CONFIG.Serve.RunMode == "debug" {