Skip to content

Commit 99b6d01

Browse files
authored
buildscripts,interop-testing: Increase logging for xDS tests (#6818)
1 parent 5e7b8c6 commit 99b6d01

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

buildscripts/kokoro/xds.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ popd
1414
git clone https://github.com/grpc/grpc.git
1515

1616
grpc/tools/run_tests/helper_scripts/prep_xds.sh
17-
python3 grpc/tools/run_tests/run_xds_tests.py \
17+
JAVA_OPTS=-Djava.util.logging.config.file=grpc-java/buildscripts/xds_logging.properties \
18+
python3 grpc/tools/run_tests/run_xds_tests.py \
1819
--test_case=all \
1920
--project_id=grpc-testing \
2021
--gcp_suffix=$(date '+%s') \

buildscripts/xds_logging.properties

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
handlers=java.util.logging.ConsoleHandler
2+
io.grpc.ChannelLogger.level=FINEST
3+
io.grpc.xds.level=FINEST
4+
java.util.logging.ConsoleHandler.level=FINEST
5+
java.util.logging.ConsoleHandler.formatter=java.util.logging.SimpleFormatter

interop-testing/src/main/java/io/grpc/testing/integration/XdsTestClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ public void onMessage(SimpleResponse response) {
223223

224224
@Override
225225
public void onClose(Status status, Metadata trailers) {
226-
if (!status.isOk()) {
226+
if (printResponse && !status.isOk()) {
227227
logger.log(Level.WARNING, "Greeting RPC failed with status {0}", status);
228228
}
229229
for (XdsStatsWatcher watcher : savedWatchers) {

0 commit comments

Comments
 (0)