Skip to content

Commit a913ab0

Browse files
authored
remove kms and last errors logback options for testing (#3539)
[ci] Signed-off-by: Nicu Reut <nicu.reut@digitalasset.com>
1 parent 99dcb7a commit a913ab0

File tree

1 file changed

+1
-26
lines changed

1 file changed

+1
-26
lines changed

canton/community/testing/src/test/resources/logback-test.xml

Lines changed: 1 addition & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -27,39 +27,14 @@
2727
</encoder>
2828
</appender>
2929

30-
<!-- Appender for KMS logs -->
31-
<appender name="KMS-FILE" class="ch.qos.logback.core.FileAppender">
32-
<file>${KMS_LOG_FILE_NAME:-log/canton_kms.log}</file>
33-
<append>${KMS_LOG_FILE_APPEND:-true}</append>
34-
<!-- Allow for disabling flush on each log-line (faster, but may miss logs when crashing) -->
35-
<immediateFlush>${KMS_LOG_IMMEDIATE_FLUSH:-true}</immediateFlush>
36-
<encoder>
37-
<!-- attempt to place the trace-id with a trailing space, however replace with an empty string if it's empty -->
38-
<pattern>%date [%thread] %-5level %logger{10} %replace(tid:%mdc{trace-id} ){'tid: ', ''}- %msg%replace(, context: %marker){', context: $', ''}%replace( err-context:%mdc{err-context} ){' err-context: ', ''}%n</pattern>
39-
</encoder>
40-
</appender>
41-
42-
<if condition='!isDefined("MERGE_KMS_LOG")'>
43-
<then>
44-
<logger name="com.digitalasset.canton.crypto.kms" level="${LOG_LEVEL_CANTON:-DEBUG}" additivity="false">
45-
<appender-ref ref="KMS-FILE"/>
46-
</logger>
47-
</then>
48-
</if>
49-
5030
<!-- Include general rewrite rules for messages we also want to rewrite in production
5131
By setting the REWRITE_TESTING variable we can include the warning suppression of testing messages.
5232
-->
5333
<property name="REWRITE_TESTING" value="true" />
5434
<include resource="rewrite-appender.xml"/>
5535

56-
<!-- Buffer errors for the last_errors command before passing them on to the rewrite appender -->
57-
<appender name="LAST_ERRORS" class="com.digitalasset.canton.logging.LastErrorsAppender">
58-
<appender-ref ref="REWRITE_LOG_LEVEL_SYNC"/>
59-
</appender>
60-
6136
<root level="INFO">
62-
<appender-ref ref="LAST_ERRORS" />
37+
<appender-ref ref="REWRITE_LOG_LEVEL_SYNC" />
6338
</root>
6439

6540
<!-- Ensure everything is logged before the JVM exits -->

0 commit comments

Comments
 (0)