Skip to content

Commit

Permalink
Route caffeine logging to slf4j and suppress verbose log
Browse files Browse the repository at this point in the history
Why:
We already have logging covering failures to obtain KMS results

Signed-off-by: Robert Young <robeyoun@redhat.com>
  • Loading branch information
robobario committed Feb 5, 2024
1 parent 65260cb commit 956eb21
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
5 changes: 5 additions & 0 deletions kroxylicious-app/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,11 @@
<artifactId>log4j-api</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-jdk-platform-logging</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-core</artifactId>
Expand Down
5 changes: 5 additions & 0 deletions kroxylicious-app/src/main/resources/log4j2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,8 @@ Configuration:
additivity: false
AppenderRef:
- ref: STDOUT
- name: com.github.benmanes.caffeine.cache.LocalAsyncCache
level: ERROR
additivity: false
AppenderRef:
- ref: STDOUT
5 changes: 5 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,11 @@
<artifactId>slf4j-simple</artifactId>
<version>${slf4j.version}</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-jdk-platform-logging</artifactId>
<version>${slf4j.version}</version>
</dependency>
<dependency>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest</artifactId>
Expand Down

0 comments on commit 956eb21

Please sign in to comment.