multiples config related add
Some checks are pending
Java CI with Gradle / build (push) Waiting to run

- Disable console debug by default
- Display log on get to console and not "click to copy"
This commit is contained in:
alexcrea 2026-06-29 13:40:03 +02:00
parent 7ea708ec14
commit 447859848b
Signed by: alexcrea
GPG key ID: E346CD16413450E3
9 changed files with 74 additions and 19 deletions

View file

@ -76,7 +76,7 @@ open class CustomAnvil : JavaPlugin() {
private fun addToLogQueue(message: String) {
if(debugStorageQueue.size >= 200) {
// Let not store infinite debug logs lol
// Let not store infinite debug logs
debugStorageQueue.removeFirst()
}
@ -88,7 +88,8 @@ open class CustomAnvil : JavaPlugin() {
*/
@JvmStatic fun log(message: String) {
if (ConfigOptions.debugLog) {
instance.logger.info(message)
if(ConfigOptions.showDebugLogInConsole)
instance.logger.info(message)
addToLogQueue(message)
}
}
@ -98,7 +99,8 @@ open class CustomAnvil : JavaPlugin() {
*/
@JvmStatic fun verboseLog(message: String) {
if (ConfigOptions.verboseDebugLog) {
instance.logger.info(message)
if(ConfigOptions.showDebugLogInConsole)
instance.logger.info(message)
addToLogQueue(message)
}
}