HOTFIX: when plugin loading to occurred exception

This commit is contained in:
Project_IO 2024-09-27 21:37:35 +09:00
parent 75a3b73993
commit 60965ee92e
2 changed files with 6 additions and 2 deletions

View file

@ -2,7 +2,7 @@ kotlin.code.style=official
org.gradle.jvmargs=-Xmx2048M -Dfile.encoding=UTF-8 org.gradle.jvmargs=-Xmx2048M -Dfile.encoding=UTF-8
group=net.projecttl group=net.projecttl
version=0.2.1-SNAPSHOT version=0.2.2-SNAPSHOT
ktor_version=2.3.12 ktor_version=2.3.12
log4j_version=2.23.1 log4j_version=2.23.1

View file

@ -153,7 +153,11 @@ class CoreKernel(token: String) {
fun load() { fun load() {
parentDir.listFiles()?.forEach { file -> parentDir.listFiles()?.forEach { file ->
loadPlugin(file) try {
loadPlugin(file)
} catch (ex: Exception) {
logger.error("error occurred while to plugin loading: ${ex.message}")
}
} }
logger.info("Loaded ${plugins.size} plugins") logger.info("Loaded ${plugins.size} plugins")