|
|
@@ -58,8 +58,8 @@ public class SpringLifecycle implements ApplicationRunner, DisposableBean {
|
|
|
private void initDisk(OssStoreConfig ossStoreConfig) {
|
|
|
try {
|
|
|
diskService.initDisk(ossStoreConfig.getSsdDir(), ossStoreConfig.getHddDirs());
|
|
|
- } catch (IOException e) {
|
|
|
- log.error("磁盘初始化失败, {}, 结束 oss-store 进程...", e.getMessage());
|
|
|
+ } catch (Exception e) {
|
|
|
+ log.error("磁盘初始化失败: {}, 结束 oss-store 进程...", e.getMessage());
|
|
|
System.exit(SpringApplication.exit(applicationContext));
|
|
|
}
|
|
|
}
|