Commit 28de9962 authored by hujiebin's avatar hujiebin

feat:减少一半日志

parent b390a967
...@@ -46,7 +46,7 @@ func check() { ...@@ -46,7 +46,7 @@ func check() {
case <-tick.C: case <-tick.C:
l, err := redisCli.GetRedis().LLen(context.Background(), micInfoChange).Result() l, err := redisCli.GetRedis().LLen(context.Background(), micInfoChange).Result()
if err != nil { if err != nil {
mylogrus.MyLog.Infof("cron micChangeSys msg error,left %v-%v", l, err) mylogrus.MyLog.Errorf("cron micChangeSys msg error,left %v-%v", l, err)
} }
if l > MONITOR_LENGTH { if l > MONITOR_LENGTH {
go func() { go func() {
...@@ -73,7 +73,7 @@ func deal() { ...@@ -73,7 +73,7 @@ func deal() {
} }
if len(strs) >= 2 { if len(strs) >= 2 {
content := strs[1] content := strs[1]
mylogrus.MyLog.Infof("cron micChangeSys content:%v", content) //mylogrus.MyLog.Infof("cron micChangeSys content:%v", content)
micSystemMsg := MicSystemMsg{} micSystemMsg := MicSystemMsg{}
if err := json.Unmarshal([]byte(content), &micSystemMsg); err != nil { if err := json.Unmarshal([]byte(content), &micSystemMsg); err != nil {
mylogrus.MyLog.Errorf("cron micChangeSys Unmarshal err:%+v, content:%v", err, content) mylogrus.MyLog.Errorf("cron micChangeSys Unmarshal err:%+v, content:%v", err, content)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment