Explorar el Código

redis连接失败服务不启动

kobe6258 hace 6 meses
padre
commit
f3748fd1ce
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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")