From 26ee42289324aabcdca498c05fcea4ea2bdd27b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Samin?= Date: Wed, 3 Apr 2019 13:15:33 +0200 Subject: [PATCH] fix(api): cache Publish error logs (#4150) --- engine/api/cache/redis.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/engine/api/cache/redis.go b/engine/api/cache/redis.go index e058f3c806..9f51a59969 100644 --- a/engine/api/cache/redis.go +++ b/engine/api/cache/redis.go @@ -290,13 +290,13 @@ func (s *RedisStore) Publish(channel string, value interface{}) { msg, err := json.Marshal(value) if err != nil { - log.Warning("redis.Publish> Marshall error, cannot push in channel %s: %v, %s", channel, value, err) + log.Warning("redis.Publish> Marshall error, cannot push in channel %s: %v", channel, err) return } iUnquoted, err := strconv.Unquote(string(msg)) if err != nil { - log.Warning("redis.Publish> Unquote error, cannot push in channel %s: %v, %s", channel, string(msg), err) + log.Warning("redis.Publish> Unquote error, cannot push in channel %s: %v", channel, err) return } @@ -305,7 +305,7 @@ func (s *RedisStore) Publish(channel string, value interface{}) { if errP == nil { break } - log.Warning("redis.Publish> Unable to publish in channel %s the message %v: %v", channel, value, errP) + log.Warning("redis.Publish> Unable to publish in channel %s: %v", channel, errP) time.Sleep(100 * time.Millisecond) } }