This commit is contained in:
yuzuki999
2023-07-13 01:19:13 +08:00
parent 65629c0dfb
commit 848c7b014a
5 changed files with 9 additions and 7 deletions

View File

@@ -28,9 +28,9 @@ func (c *Controller) reportUserTrafficTask() (err error) {
log.WithFields(log.Fields{
"tag": c.Tag,
"err": err,
}).Error("Report user traffic faild")
}).Info("Report user traffic failed")
} else {
log.WithField("tag", err).Errorf("Report %d online users", len(userTraffic))
log.WithField("tag", c.Tag).Infof("Report %d online users", len(userTraffic))
}
}
userTraffic = nil