mirror of https://github.com/halo-dev/halo
Merge pull request #7291 from guqing/chore/log-plugin
chore: add exception information to log output when the plugin fails to startpull/7303/head v2.20.17
commit
636538261f
|
@ -310,6 +310,7 @@ public class PluginReconciler implements Reconciler<Request> {
|
|||
""".formatted(pluginName, pluginState));
|
||||
}
|
||||
} catch (Throwable e) {
|
||||
log.debug("Error occurred when starting plugin {}", pluginName, e);
|
||||
conditions.addAndEvictFIFO(Condition.builder()
|
||||
.type(ConditionType.READY)
|
||||
.status(ConditionStatus.FALSE)
|
||||
|
|
Loading…
Reference in New Issue