Skip to content

Commit

Permalink
Remove listing of every key inside Redis error logs (#283)
Browse files Browse the repository at this point in the history
Remove listing every conf record and key on error
  • Loading branch information
pistomat authored Nov 6, 2024
1 parent cf2d33a commit 92588d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion suave/cstore/redis_store_backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ func (r *RedisStoreBackend) Retrieve(record suave.DataRecord, caller common.Addr
storeKey := formatRecordValueKey(record.Id, key)
data, err := r.client.Get(r.ctx, storeKey).Bytes()
if err != nil {
return []byte{}, fmt.Errorf("unexpected redis error: %w, %s, %v", err, storeKey, r.client.Keys(context.TODO(), "*").String())
return []byte{}, fmt.Errorf("unexpected redis error: %w, %s", err, storeKey)
}

return data, nil
Expand Down

0 comments on commit 92588d8

Please sign in to comment.