Jelajahi Sumber

redis连接失败服务不启动

kobe6258 6 bulan lalu
induk
melakukan
f3748fd1ce
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      common/component/cache/redis.go

+ 1 - 1
common/component/cache/redis.go

@@ -33,7 +33,7 @@ func GetInstance() *RedisCache {
 				redisCache = newRedis(redisConf)
 				_, err := redisCache.Do("Ping")
 				if err != nil {
-					logger.Warn("redis 链接失败:%v", err)
+					log.Fatalf("redis 链接失败:%v", err)
 				}
 			} else {
 				logger.Info("Redis configuration is incomplete: Host is missing")