Skip to content

Commit

Permalink
[SPARK-37733][BUILD] Change log level of tests to WARN
Browse files Browse the repository at this point in the history
### What changes were proposed in this pull request?

Change log level of tests to WARN

### Why are the changes needed?

After apache#34895, the log level of tests becomes either "INFO" or "DEBUG", this increases the log output file to over 100MB!
E.g https://github.com/gengliangwang/spark/runs/4623214509?check_suite_focus=true

This makes it difficult to find the CI test failures. Changing the log level of tests to WARN should help.

### Does this PR introduce _any_ user-facing change?

No

### How was this patch tested?

It's just conf change.

Closes apache#35011 from gengliangwang/loglevel.

Authored-by: Gengliang Wang <[email protected]>
Signed-off-by: Hyukjin Kwon <[email protected]>
  • Loading branch information
gengliangwang authored and HyukjinKwon committed Dec 24, 2021
1 parent 072e7ca commit c0cedb1
Show file tree
Hide file tree
Showing 24 changed files with 24 additions and 24 deletions.
2 changes: 1 addition & 1 deletion common/kvstore/src/test/resources/log4j2.properties
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#

# Set everything to be logged to the file target/unit-tests.log
rootLogger.level = debug
rootLogger.level = warn
rootLogger.appenderRef.file.ref = File

appender.file.type = File
Expand Down
2 changes: 1 addition & 1 deletion common/network-common/src/test/resources/log4j2.properties
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#

# Set everything to be logged to the file target/unit-tests.log
rootLogger.level = debug
rootLogger.level = warn
rootLogger.appenderRef.file.ref = File

appender.file.type = File
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#

# Set everything to be logged to the file target/unit-tests.log
rootLogger.level = debug
rootLogger.level = warn
rootLogger.appenderRef.file.ref = File

appender.file.type = File
Expand Down
2 changes: 1 addition & 1 deletion core/src/test/resources/log4j2.properties
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#

# Set everything to be logged to the file target/unit-tests.log
rootLogger.level = info
rootLogger.level = warn
rootLogger.appenderRef.file.ref = ${sys:test.appender:-File}

appender.file.type = File
Expand Down
2 changes: 1 addition & 1 deletion external/avro/src/test/resources/log4j2.properties
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#

# Set everything to be logged to the file target/unit-tests.log
rootLogger.level = info
rootLogger.level = warn
rootLogger.appenderRef.file.ref = File

appender.file.type = File
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#

# Set everything to be logged to the file target/unit-tests.log
rootLogger.level = info
rootLogger.level = warn
rootLogger.appenderRef.file.ref = ${sys:test.appender:-File}

appender.file.type = File
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#

# Set everything to be logged to the file target/unit-tests.log
rootLogger.level = info
rootLogger.level = warn
rootLogger.appenderRef.file.ref = File

appender.file.type = File
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#

# Set everything to be logged to the file target/unit-tests.log
rootLogger.level = info
rootLogger.level = warn
rootLogger.appenderRef.file.ref = File

appender.file.type = File
Expand Down
2 changes: 1 addition & 1 deletion external/kafka-0-10/src/test/resources/log4j2.properties
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#

# Set everything to be logged to the file target/unit-tests.log
rootLogger.level = info
rootLogger.level = warn
rootLogger.appenderRef.file.ref = File

appender.file.type = File
Expand Down
2 changes: 1 addition & 1 deletion external/kinesis-asl/src/test/resources/log4j2.properties
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#

# Set everything to be logged to the file target/unit-tests.log
rootLogger.level = info
rootLogger.level = warn
rootLogger.appenderRef.file.ref = File

appender.file.type = File
Expand Down
2 changes: 1 addition & 1 deletion graphx/src/test/resources/log4j2.properties
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#

# Set everything to be logged to the file target/unit-tests.log
rootLogger.level = info
rootLogger.level = warn
rootLogger.appenderRef.file.ref = File

appender.file.type = File
Expand Down
2 changes: 1 addition & 1 deletion hadoop-cloud/src/test/resources/log4j2.properties
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#

# Set everything to be logged to the file target/unit-tests.log
rootLogger.level = info
rootLogger.level = warn
rootLogger.appenderRef.file.ref = ${sys:test.appender:-File}

appender.file.type = File
Expand Down
2 changes: 1 addition & 1 deletion launcher/src/test/resources/log4j2.properties
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#

# Set everything to be logged to the file core/target/unit-tests.log
rootLogger.level = info
rootLogger.level = warn
rootLogger.appenderRef.file.ref = ${sys:test.appender:-File}

appender.file.type = File
Expand Down
2 changes: 1 addition & 1 deletion mllib/src/test/resources/log4j2.properties
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#

# Set everything to be logged to the file target/unit-tests.log
rootLogger.level = info
rootLogger.level = warn
rootLogger.appenderRef.file.ref = File

appender.file.type = File
Expand Down
2 changes: 1 addition & 1 deletion repl/src/test/resources/log4j2.properties
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#

# Set everything to be logged to the target/unit-tests.log
rootLogger.level = info
rootLogger.level = warn
rootLogger.appenderRef.file.ref = file

appender.file.type = File
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#

# Set everything to be logged to the file target/unit-tests.log
rootLogger.level = info
rootLogger.level = warn
rootLogger.appenderRef.file.ref = File

appender.file.type = File
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#

# Set everything to be logged to the file target/integration-tests.log
rootLogger.level = info
rootLogger.level = warn
rootLogger.appenderRef.file.ref = File

appender.file.type = File
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#

# Set everything to be logged to the file target/unit-tests.log
rootLogger.level = debug
rootLogger.level = warn
rootLogger.appenderRef.file.ref = File

appender.file.type = File
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#

# Set everything to be logged to the file target/unit-tests.log
rootLogger.level = debug
rootLogger.level = warn
rootLogger.appenderRef.file.ref = File

appender.file.type = File
Expand Down
2 changes: 1 addition & 1 deletion sql/catalyst/src/test/resources/log4j2.properties
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#

# Set everything to be logged to the file target/unit-tests.log
rootLogger.level = info
rootLogger.level = warn
rootLogger.appenderRef.file.ref = File

appender.file.type = File
Expand Down
2 changes: 1 addition & 1 deletion sql/core/src/test/resources/log4j2.properties
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#

# Set everything to be logged to the file core/target/unit-tests.log
rootLogger.level = info
rootLogger.level = warn
rootLogger.appenderRef.stdout.ref = STDOUT
rootLogger.appenderRef.file.ref = File

Expand Down
2 changes: 1 addition & 1 deletion sql/hive-thriftserver/src/test/resources/log4j2.properties
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#

# Set everything to be logged to the file hive-thriftserver/target/unit-tests.log
rootLogger.level = info
rootLogger.level = warn
rootLogger.appenderRef.stdout.ref = STDOUT
rootLogger.appenderRef.file.ref = File

Expand Down
2 changes: 1 addition & 1 deletion sql/hive/src/test/resources/log4j2.properties
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#

# Set everything to be logged to the file core/target/unit-tests.log
rootLogger.level = debug
rootLogger.level = warn
rootLogger.appenderRef.stdout.ref = STDOUT
rootLogger.appenderRef.file.ref = File

Expand Down
2 changes: 1 addition & 1 deletion streaming/src/test/resources/log4j2.properties
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#

# Set everything to be logged to the file target/unit-tests.log
rootLogger.level = info
rootLogger.level = warn
rootLogger.appenderRef.file.ref = File

appender.file.type = File
Expand Down

0 comments on commit c0cedb1

Please sign in to comment.