Update dependencies

This commit is contained in:
AsamK 2023-08-11 00:43:07 +02:00
parent 2d73ba6735
commit 9a63f97a19
2 changed files with 2 additions and 4 deletions

View file

@ -13,7 +13,7 @@ dependencyResolutionManagement {
version("slf4j", "2.0.7")
library("slf4j.api", "org.slf4j", "slf4j-api").versionRef("slf4j")
library("slf4j.jul", "org.slf4j", "jul-to-slf4j").versionRef("slf4j")
library("logback", "ch.qos.logback", "logback-classic").version("1.4.10")
library("logback", "ch.qos.logback", "logback-classic").version("1.4.11")
library("signalservice", "com.github.turasa", "signal-service-java").version("2.15.3_unofficial_78")

View file

@ -9,7 +9,6 @@ import ch.qos.logback.classic.PatternLayout;
import ch.qos.logback.classic.spi.Configurator;
import ch.qos.logback.classic.spi.ILoggingEvent;
import ch.qos.logback.core.ConsoleAppender;
import ch.qos.logback.core.Context;
import ch.qos.logback.core.FileAppender;
import ch.qos.logback.core.Layout;
import ch.qos.logback.core.encoder.LayoutWrappingEncoder;
@ -36,8 +35,7 @@ public class LogConfigurator extends ContextAwareBase implements Configurator {
}
@Override
public ExecutionStatus configure(final Context context) {
LoggerContext lc = (LoggerContext) context;
public ExecutionStatus configure(LoggerContext lc) {
final var rootLogger = lc.getLogger(Logger.ROOT_LOGGER_NAME);
final var defaultLevel = verboseLevel > 1 ? Level.ALL : verboseLevel > 0 ? Level.INFO : Level.WARN;