Cleanup logging of redis item

This commit is contained in:
Peter Stuifzand 2018-07-07 14:32:36 +02:00
parent 66321c44a5
commit 6d3eaa020d

View File

@ -391,8 +391,7 @@ func (b *memoryBackend) channelAddItem(channel string, item microsub.Item) {
Data: data,
}
log.Printf("Adding item to channel %s\n", channel)
log.Printf("%#v\n", forRedis)
log.Printf("Adding item to channel %s => %s\n", channel, string(forRedis.Data))
itemKey := fmt.Sprintf("item:%s", item.ID)
_, err = redis.String(conn.Do("HMSET", redis.Args{}.Add(itemKey).AddFlat(&forRedis)...))