Added log-full-extension-errors

This commit is contained in:
Auxilor
2022-02-02 12:46:49 +00:00
parent 90b81f56df
commit cc8a799438
2 changed files with 8 additions and 0 deletions

View File

@@ -1,6 +1,7 @@
package com.willfp.eco.internal.extensions
import com.google.common.collect.ImmutableSet
import com.willfp.eco.core.Eco
import com.willfp.eco.core.EcoPlugin
import com.willfp.eco.core.config.TransientConfig
import com.willfp.eco.core.extensions.Extension
@@ -32,6 +33,9 @@ class EcoExtensionLoader(
runCatching { loadExtension(extensionJar) }.onFailure {
this.plugin.logger.warning(extensionJar.name + " caused an error!")
if (Eco.getHandler().ecoPlugin.configYml.getBool("log-full-extension-errors")) {
it.printStackTrace()
}
}
}
}

View File

@@ -48,6 +48,10 @@ display-frame-ttl: 17
# at a performance penalty.
use-safer-namespacedkey-creation: false
# If the stack traces of extensions that failed to load should be logged. Disabled by
# default to prevent users from reporting bugs. Enable if you're a developer.
log-full-extension-errors: false
# Window items packets have the option to be run asynchronously. This may cause
# some bugs and is considered experimental, however it has been tested without
# any apparent issues. Enable this if performance is absolutely crucial or if you