From b3773a1f88c54a694fdbbb3a2995bbe81662242c Mon Sep 17 00:00:00 2001 From: Andy Wilkinson Date: Thu, 22 Feb 2024 07:59:34 +0000 Subject: [PATCH] Upgrade to Log4j2 2.23.0 Closes gh-39713 --- spring-boot-project/spring-boot-dependencies/build.gradle | 2 +- .../boot/logging/log4j2/CorrelationIdConverterTests.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/spring-boot-project/spring-boot-dependencies/build.gradle b/spring-boot-project/spring-boot-dependencies/build.gradle index aaa87a03f2..45df2202d9 100644 --- a/spring-boot-project/spring-boot-dependencies/build.gradle +++ b/spring-boot-project/spring-boot-dependencies/build.gradle @@ -842,7 +842,7 @@ bom { ] } } - library("Log4j2", "2.22.1") { + library("Log4j2", "2.23.0") { group("org.apache.logging.log4j") { imports = [ "log4j-bom" diff --git a/spring-boot-project/spring-boot/src/test/java/org/springframework/boot/logging/log4j2/CorrelationIdConverterTests.java b/spring-boot-project/spring-boot/src/test/java/org/springframework/boot/logging/log4j2/CorrelationIdConverterTests.java index 87d9b22cf3..7f1a692eff 100644 --- a/spring-boot-project/spring-boot/src/test/java/org/springframework/boot/logging/log4j2/CorrelationIdConverterTests.java +++ b/spring-boot-project/spring-boot/src/test/java/org/springframework/boot/logging/log4j2/CorrelationIdConverterTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2023 the original author or authors. + * Copyright 2012-2024 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -57,7 +57,7 @@ class CorrelationIdConverterTests { @Override public ReadOnlyStringMap getContextData() { return new JdkMapAdapterStringMap( - Map.of("traceId", "01234567890123456789012345678901", "spanId", "0123456789012345")); + Map.of("traceId", "01234567890123456789012345678901", "spanId", "0123456789012345"), true); } }