Browse Source

电脑上报添加日志

wangbin 3 years ago
parent
commit
5db0b9e47a
1 changed files with 2 additions and 2 deletions
  1. 2 2
      api/v1/log/loging.go

+ 2 - 2
api/v1/log/loging.go

@@ -2,6 +2,7 @@ package log
 
 import (
 	"encoding/json"
+	"fmt"
 	"github.com/gin-gonic/gin"
 	"go.uber.org/zap"
 	"log-server/global"
@@ -193,8 +194,6 @@ func (s *ApiLoging) GetIp(c *gin.Context) {
 	}
 }
 
-
-
 // @Tags loging
 // @Summary 获取统计节点log
 // @Security ApiKeyAuth
@@ -393,6 +392,7 @@ func (s *ApiLoging) ComputerHeartbeat(c *gin.Context) {
 		return
 	}
 	num := ServiceStatisticsLog.ComputerHeartbeat(c, paramsInfo)
+	global.GVA_LOG.Warn(fmt.Sprintf("电脑上报参数pcc_code=%s Operator=%s", paramsInfo.PcCode, paramsInfo.Operator))
 	response.OkWithDetailed(num, "上报成功", c)
 }