refactor:es初始化失败时退出进程
This commit is contained in:
parent
bab224f386
commit
05aba42335
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user