Minor fix for debugging

This commit is contained in:
Hongwei Wang 2015-08-12 11:27:28 -07:00
parent d7c5aa856b
commit eeb61ba355
2 changed files with 3 additions and 1 deletions

View File

@ -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);
}

View File

@ -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