diff --git a/redis/subscribers.go b/redis/subscribers.go index 2a30c9d..03f3043 100644 --- a/redis/subscribers.go +++ b/redis/subscribers.go @@ -2,7 +2,6 @@ package redis import ( "encoding/json" - "fmt" "sync" "git.loafle.net/commons_go/logging" @@ -127,7 +126,7 @@ func listenSubscriptions(s *subscribers) { case redis.Message: if h, ok := s.subHandlers[v.Channel]; ok { if message, err := unmarshalMessage(v.Data); nil != err { - logging.Logger().Error(fmt.Sprintf("Subscriber Unmarshal error:%v", err)) + logging.Logger().Errorf("Subscriber Unmarshal error:%v", err) break } else { h.OnSubscribe(v.Channel, message)