Skip to content

Commit

Permalink
chore(deps): bump logback to 1.3.13 (#218)
Browse files Browse the repository at this point in the history
  • Loading branch information
dependabot[bot] authored Nov 30, 2023
1 parent 3fcf5c3 commit d12d6cf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions uat/custom-components/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,12 @@
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>
<version>1.3.0-alpha4</version>
<version>1.3.13</version>
</dependency>
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-core</artifactId>
<version>1.3.12</version>
<version>1.3.13</version>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
import ch.qos.logback.core.rolling.RollingFileAppender;
import ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy;
import ch.qos.logback.core.util.FileSize;
import org.slf4j.helpers.NOPMDCAdapter;
import software.amazon.awssdk.aws.greengrass.model.InvalidArgumentsError;

import java.util.concurrent.TimeUnit;
Expand Down Expand Up @@ -67,6 +68,8 @@ private void generateLogs() throws InterruptedException {

private Logger configureLogger() {
LoggerContext loggerContext = new LoggerContext();
// Must set an MDC adapter for 1.3.8+. https://github.com/qos-ch/logback/issues/709
loggerContext.setMDCAdapter(new NOPMDCAdapter());
Logger logger = loggerContext.getLogger("LogGenerator");

// appender: output destination
Expand Down

0 comments on commit d12d6cf

Please sign in to comment.