From eeb61ba3553cb68c30dfe9ef206a0ad7edc2bd1f Mon Sep 17 00:00:00 2001 From: Hongwei Wang Date: Wed, 12 Aug 2015 11:27:28 -0700 Subject: [PATCH] Minor fix for debugging --- src/core/client_config/resolvers/zookeeper_resolver.c | 1 + test/cpp/end2end/zookeeper_test.cc | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/core/client_config/resolvers/zookeeper_resolver.c b/src/core/client_config/resolvers/zookeeper_resolver.c index 96c59eacf9b..ea4f0f996d3 100644 --- a/src/core/client_config/resolvers/zookeeper_resolver.c +++ b/src/core/client_config/resolvers/zookeeper_resolver.c @@ -267,6 +267,7 @@ static char *zookeeper_parse_address(char *buffer, int buffer_len) { } if (host != NULL && port != NULL) { gpr_asprintf(&address, "%s:%s", host, port); + gpr_log(GPR_DEBUG, address); } grpc_json_destroy(json); } diff --git a/test/cpp/end2end/zookeeper_test.cc b/test/cpp/end2end/zookeeper_test.cc index f5c8fb9f17e..7b137a5ae77 100644 --- a/test/cpp/end2end/zookeeper_test.cc +++ b/test/cpp/end2end/zookeeper_test.cc @@ -184,7 +184,8 @@ TEST_F(ZookeeperTest, ZookeeperStateChangeTwoRpc) { EXPECT_TRUE(s1.ok()); // Zookeeper state change - DeleteService("/test/2"); + gpr_log(GPR_DEBUG, "delete /test/1"); + DeleteService("/test/1"); sleep(1); // Second RPC