chore: ignore preset plugin installation errors to avoid initialization failure (#6855)

#### What type of PR is this?
/milestone 2.20.x
/area core
/milestone 2.20.x

#### What this PR does / why we need it:
忽略预设插件安装时的错误避免无法初始化

可能因为没有预先 download 预设插件到项目目录而发生 IO 异常影响初始化流程

#### Does this PR introduce a user-facing change?

```release-note
None
```
pull/6848/head
guqing 2024-10-13 21:57:13 +08:00 committed by GitHub
parent 3bdec9eacf
commit 58488686a7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -516,7 +516,8 @@ public class PluginServiceImpl implements PluginService, InitializingBean, Dispo
return path;
});
} catch (IOException e) {
return Flux.error(e);
log.debug("Failed to load preset plugins: {}", e.getMessage());
return Flux.empty();
}
}