Skip to content

Commit 09aee2e

Browse files
committed
better loggging
1 parent 406be9e commit 09aee2e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rcache.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ func New(redisURL string, logger logger) *Cache {
4242
if err == nil {
4343
opts.Port = i
4444
}
45-
logger.Info("trying cache with defaults", opts)
45+
logger.Info("trying cache with defaults --- host=", opts.Host, " port= ", opts.Port)
4646
} else {
4747
opts = &xredis.Options{}
4848
u, err := url.Parse(redisURL)
@@ -63,7 +63,7 @@ func New(redisURL string, logger logger) *Cache {
6363
return nil
6464
}
6565
opts.Port = port
66-
logger.Info("trying cache with redis url", opts)
66+
logger.Info("trying cache with redis url --- host=", opts.Host, " port= ", opts.Port)
6767
}
6868

6969
client := xredis.SetupClient(opts)

0 commit comments

Comments
 (0)