refactor:es初始化失败时退出进程

This commit is contained in:
fanxb 2020-01-25 19:14:42 +08:00
parent bab224f386
commit 05aba42335

View File

@ -73,7 +73,8 @@ public class EsUtil {
throw new CustomException("初始化失败"); throw new CustomException("初始化失败");
} }
} catch (Exception e) { } catch (Exception e) {
log.error("注意初始化es失败", e); log.error("注意初始化es失败:{}:{}", host, port, e);
System.exit(0);
} }
} }