From 2795ac6e6b551865a4b37d6b45299baa7c3d69a7 Mon Sep 17 00:00:00 2001 From: astaxie Date: Thu, 17 Oct 2013 21:13:54 +0800 Subject: [PATCH] update panic --- session/sess_redis.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/session/sess_redis.go b/session/sess_redis.go index 13348e84..b08d7dad 100644 --- a/session/sess_redis.go +++ b/session/sess_redis.go @@ -1,6 +1,7 @@ package session import ( + "fmt" "github.com/garyburd/redigo/redis" ) @@ -67,7 +68,8 @@ func (rp *RedisProvider) connectInit() redis.Conn { for i := 0; i < MAX_POOL_SIZE/2; i++ { c, err := redis.Dial("tcp", rp.savePath) if err != nil { - panic(err) + fmt.Println(err) + return } putRedis(c) }