From de5f6de361c252aa9dfa6662906e80261fe2c995 Mon Sep 17 00:00:00 2001 From: crusader Date: Wed, 21 Mar 2018 19:56:34 +0900 Subject: [PATCH] ing --- redis/subscribers.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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)