Skip to content
This repository has been archived by the owner on Apr 1, 2024. It is now read-only.

Commit

Permalink
[improve][test] Reduce logging overhead in tests (apache#22251)
Browse files Browse the repository at this point in the history
  • Loading branch information
lhotari authored Mar 12, 2024
1 parent 532b0d9 commit 4eb3034
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion buildtools/src/main/resources/log4j2.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<Configuration status="INFO">
<Appenders>
<Console name="Console" target="SYSTEM_OUT">
<PatternLayout pattern="%d{ISO8601_OFFSET_DATE_TIME_HHMM} %-5level [%t{12}] %c{1.}@%L - %msg %X%n" />
<PatternLayout pattern="%d{ISO8601_OFFSET_DATE_TIME_HHMM} %-5level [%t{12}] %c{1.} - %msg %X%n" />
</Console>
</Appenders>
<Loggers>
Expand Down
2 changes: 1 addition & 1 deletion pulsar-broker/src/test/resources/log4j2.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
xsi:schemaLocation="http://logging.apache.org/log4j/2.0/config https://logging.apache.org/log4j/2.0/log4j-core.xsd">
<Appenders>
<Console name="CONSOLE" target="SYSTEM_OUT">
<PatternLayout pattern="%d{ISO8601} - %-5p - [%t:%C{1}@%L] - %m%n"/>
<PatternLayout pattern="%d{ISO8601} - %-5p - [%t:%c{1}] - %m%n"/>
</Console>
</Appenders>
<Loggers>
Expand Down
4 changes: 2 additions & 2 deletions tiered-storage/jcloud/src/test/resources/log4j2-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,12 @@ Configuration:
name: STDOUT
target: SYSTEM_OUT
PatternLayout:
Pattern: "%d{ISO8601_OFFSET_DATE_TIME_HHMM} [%t:%C@%L] %-5level %logger{36} - %msg%n"
Pattern: "%d{ISO8601_OFFSET_DATE_TIME_HHMM} [%t] %-5level %logger{36} - %msg%n"
File:
name: File
fileName: ${filename}
PatternLayout:
Pattern: "%d %p %C{1.} [%t] %m%n"
Pattern: "%d %p %c{1.} [%t] %m%n"
Filters:
ThresholdFilter:
level: error
Expand Down

0 comments on commit 4eb3034

Please sign in to comment.