Permalink
Browse files

Add log to avoid warning for ineffectual assignment (#584)

  • Loading branch information...
isaachier authored and yurishkuro committed Dec 8, 2017
1 parent 3fddfb2 commit 6cb46f5aa7ce39160b9df8d5efa14f7a00c5de41
Showing with 1 addition and 0 deletions.
  1. +1 −0 examples/hotrod/services/driver/redis.go
@@ -62,6 +62,7 @@ func (r *Redis) FindDriverIDs(ctx context.Context, location string) []string {
for i := range drivers {
drivers[i] = fmt.Sprintf("T7%05dC", rand.Int()%100000)
}
r.logger.For(ctx).Info("Found drivers", zap.Strings("drivers", drivers))
return drivers
}

0 comments on commit 6cb46f5

Please sign in to comment.