buildscripts,interop-testing: Increase logging for xDS tests (#6818)

This commit is contained in:
Eric Gribkoff 2020-03-11 20:34:26 -07:00 committed by GitHub
parent 5e7b8c672f
commit 99b6d0156e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 2 deletions

View File

@ -14,7 +14,8 @@ popd
git clone https://github.com/grpc/grpc.git
grpc/tools/run_tests/helper_scripts/prep_xds.sh
python3 grpc/tools/run_tests/run_xds_tests.py \
JAVA_OPTS=-Djava.util.logging.config.file=grpc-java/buildscripts/xds_logging.properties \
python3 grpc/tools/run_tests/run_xds_tests.py \
--test_case=all \
--project_id=grpc-testing \
--gcp_suffix=$(date '+%s') \

View File

@ -0,0 +1,5 @@
handlers=java.util.logging.ConsoleHandler
io.grpc.ChannelLogger.level=FINEST
io.grpc.xds.level=FINEST
java.util.logging.ConsoleHandler.level=FINEST
java.util.logging.ConsoleHandler.formatter=java.util.logging.SimpleFormatter

View File

@ -223,7 +223,7 @@ public final class XdsTestClient {
@Override
public void onClose(Status status, Metadata trailers) {
if (!status.isOk()) {
if (printResponse && !status.isOk()) {
logger.log(Level.WARNING, "Greeting RPC failed with status {0}", status);
}
for (XdsStatsWatcher watcher : savedWatchers) {