From 0691cba084cc4d0817f59f86b034527ad5402851 Mon Sep 17 00:00:00 2001 From: sschr15 Date: Mon, 18 Dec 2023 14:43:02 -0600 Subject: [PATCH] everything is pain --- src/main/resources/logback.groovy | 1 + src/main/resources/logbackCompiler.groovy | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/main/resources/logback.groovy b/src/main/resources/logback.groovy index 631dc4e2..ee7b5e01 100644 --- a/src/main/resources/logback.groovy +++ b/src/main/resources/logback.groovy @@ -7,6 +7,7 @@ import ch.qos.logback.core.ConsoleAppender import ch.qos.logback.core.joran.spi.ConsoleTarget import org.quiltmc.community.DiscordLogAppender +import java.util.ArrayList def environment = System.getenv().getOrDefault("ENVIRONMENT", "prod") def logUrl = System.getenv().getOrDefault("DISCORD_LOGGER_URL", null) diff --git a/src/main/resources/logbackCompiler.groovy b/src/main/resources/logbackCompiler.groovy index 44f5a931..da46dd8c 100644 --- a/src/main/resources/logbackCompiler.groovy +++ b/src/main/resources/logbackCompiler.groovy @@ -456,6 +456,8 @@ importsAcceptList = [ 'java.lang.System.getProperty', 'java.lang.System.getenv', 'java.util.Map.getOrDefault', + 'java.util.ArrayList', + 'java.util.ArrayList.add', 'com.kotlindiscord.kord.extensions.utils._EnvironmentKt.envOrNull', 'org.quiltmc.community._ConstantsKt.getLOGGING_ENV', 'org.quiltmc.community._ConstantsKt.getLOGGING_URL'