瀏覽代碼

redis连接失败服务不启动

kobe6258 6 月之前
父節點
當前提交
f3748fd1ce
共有 1 個文件被更改,包括 1 次插入1 次删除
  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")