Merge pull request #7291 from guqing/chore/log-plugin

chore: add exception information to log output when the plugin fails to start
pull/7303/head v2.20.17
John Niang 2025-03-13 18:17:24 +08:00 committed by GitHub
commit 636538261f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -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)