Commit ace0492e authored by hujiebin's avatar hujiebin

优化log

parent 854737f8
...@@ -4,6 +4,7 @@ import ( ...@@ -4,6 +4,7 @@ import (
"encoding/json" "encoding/json"
"git.hilo.cn/hilo-common/domain" "git.hilo.cn/hilo-common/domain"
"git.hilo.cn/hilo-common/resource/mysql" "git.hilo.cn/hilo-common/resource/mysql"
"github.com/go-redis/redis/v8"
"hilo-group/_const/redis_key/groupPower_k" "hilo-group/_const/redis_key/groupPower_k"
"time" "time"
) )
...@@ -36,7 +37,9 @@ func BLPopGroupPowerGradeExp(model *domain.Model) *GroupPowerGradeExp { ...@@ -36,7 +37,9 @@ func BLPopGroupPowerGradeExp(model *domain.Model) *GroupPowerGradeExp {
queue := groupPower_k.GetGroupPowerGradeExpQueue() queue := groupPower_k.GetGroupPowerGradeExpQueue()
strs, err := model.Redis.BLPop(model, time.Second, queue).Result() strs, err := model.Redis.BLPop(model, time.Second, queue).Result()
if err != nil { if err != nil {
model.Log.Errorf("BLPopGroupPowerGradeExp fail:%v", err) if err != redis.Nil {
model.Log.Errorf("BLPopGroupPowerGradeExp fail:%v", err)
}
return nil return nil
} }
if len(strs) >= 2 { if len(strs) >= 2 {
......
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