Skip to content

Commit

Permalink
[improve][test] Reduce logging overhead in tests
Browse files Browse the repository at this point in the history
- don't log the location where the log was added since this causes a high overhead
  • Loading branch information
lhotari committed Mar 12, 2024
1 parent 73f62c5 commit e0d8c9f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 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
2 changes: 1 addition & 1 deletion tiered-storage/jcloud/src/test/resources/log4j2-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ 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:%C] %-5level %logger{36} - %msg%n"
File:
name: File
fileName: ${filename}
Expand Down

0 comments on commit e0d8c9f

Please sign in to comment.