Skip to content

Commit

Permalink
log only length of records from redis (#161)
Browse files Browse the repository at this point in the history
Fixes #159

The logs now looks like

```
[Oct 18 09:50:40] DEBUG redis: Analytics returned: 2
[Oct 18 09:50:40] DEBUG redis: Unpacked vals: 0
```
  • Loading branch information
gernest authored and buger committed Oct 31, 2019
1 parent 9875eb7 commit 72aae90
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions storage/redis.go
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ func (r *RedisClusterStorageManager) GetAndDeleteSet(keyName string) []interface

log.WithFields(logrus.Fields{
"prefix": redisLogPrefix,
}).Debug("Analytics returned: ", redVal)
}).Debug("Analytics returned: ", len(redVal))
if len(redVal) == 0 {
return []interface{}{}
}
Expand All @@ -244,7 +244,7 @@ func (r *RedisClusterStorageManager) GetAndDeleteSet(keyName string) []interface

log.WithFields(logrus.Fields{
"prefix": redisLogPrefix,
}).Debug("Unpacked vals: ", vals)
}).Debug("Unpacked vals: ", len(vals))

return vals
}
Expand Down

0 comments on commit 72aae90

Please sign in to comment.