Skip to content

Commit 1d2c835

Browse files
Adapt the log levels in the logging tests to avoid false positives (#449)
1 parent 78252a3 commit 1d2c835

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

tests/templates/kuttl/logging/03-install-hdfs-automatic-log.yaml.j2

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,10 +86,13 @@ spec:
8686
console:
8787
level: INFO
8888
file:
89-
level: INFO
89+
# Set the log level to DEBUG because if the NameNodes
90+
# are already ready then nothing is logged at the INFO
91+
# level.
92+
level: DEBUG
9093
loggers:
9194
ROOT:
92-
level: INFO
95+
level: DEBUG
9396
journalNodes:
9497
roleGroups:
9598
default:

tests/templates/kuttl/logging/04-install-hdfs-custom-log.yaml.j2

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,9 @@ metadata:
4949
name: hdfs-wait-for-namenodes-log-config
5050
data:
5151
wait-for-namenodes.log4j.properties: |
52-
log4j.rootLogger=INFO, FILE
52+
# Set the log level to DEBUG because if the NameNodes are already
53+
# ready then nothing is logged at the INFO level.
54+
log4j.rootLogger=DEBUG, FILE
5355
log4j.appender.FILE=org.apache.log4j.FileAppender
5456
log4j.appender.FILE.File=/stackable/log/wait-for-namenodes/wait-for-namenodes.log4j.xml
5557
log4j.appender.FILE.layout=org.apache.log4j.xml.XMLLayout

0 commit comments

Comments
 (0)