浏览代码

use release versions of slf4j + logback

Sebastian Stenzel 2 年之前
父节点
当前提交
16c0431f6f
共有 2 个文件被更改,包括 4 次插入3 次删除
  1. 2 2
      pom.xml
  2. 2 1
      src/main/java/org/cryptomator/logging/LogbackConfigurator.java

+ 2 - 2
pom.xml

@@ -46,8 +46,8 @@
 		<javafx.version>18.0.1</javafx.version>
 		<jwt.version>4.0.0</jwt.version>
 		<nimbus-jose.version>9.23</nimbus-jose.version>
-		<logback.version>1.3.0-beta0</logback.version>
-		<slf4j.version>2.0.0-beta1</slf4j.version>
+		<logback.version>1.4.0</logback.version>
+		<slf4j.version>2.0.0</slf4j.version>
 		<tinyoauth2.version>0.5.1</tinyoauth2.version>
 		<zxcvbn.version>1.7.0</zxcvbn.version>
 

+ 2 - 1
src/main/java/org/cryptomator/logging/LogbackConfigurator.java

@@ -55,7 +55,7 @@ public class LogbackConfigurator extends ContextAwareBase implements Configurato
 	}
 
 	@Override
-	public void configure(LoggerContext context) {
+	public ExecutionStatus configure(LoggerContext context) {
 		var useCustomCfg = Environment.getInstance().useCustomLogbackConfig();
 		var logDir = Environment.getInstance().getLogDir().orElse(null);
 
@@ -85,6 +85,7 @@ public class LogbackConfigurator extends ContextAwareBase implements Configurato
 			upgrades.addAppender(file);
 			upgrades.setAdditive(false);
 		}
+		return ExecutionStatus.DO_NOT_INVOKE_NEXT_IF_ANY;
 	}
 
 	private Appender<ILoggingEvent> noopAppender(LoggerContext context) {