Skip to content

Commit 406be9e

Browse files
committed
better loggging
1 parent 86b261c commit 406be9e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

rcache.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +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)
4546
} else {
4647
opts = &xredis.Options{}
4748
u, err := url.Parse(redisURL)
@@ -62,9 +63,9 @@ func New(redisURL string, logger logger) *Cache {
6263
return nil
6364
}
6465
opts.Port = port
66+
logger.Info("trying cache with redis url", opts)
6567
}
6668

67-
logger.Info("trying cache", opts)
6869
client := xredis.SetupClient(opts)
6970
pong, err := client.Ping()
7071
if err != nil {

0 commit comments

Comments
 (0)