diff options
author | Carlos Valera <2501087+cookyt@users.noreply.github.com> | 2018-02-21 14:44:15 -0800 |
---|---|---|
committer | Carlos Valera <2501087+cookyt@users.noreply.github.com> | 2018-02-21 16:03:00 -0800 |
commit | efce74b5253d8418d0621e1f30993325e1b2a22e (patch) | |
tree | c64e6ff410d735f0e4f9af0fe65724989b57b132 /test | |
parent | d555bd85435ea79f74a58c519dd71a5bb65c7f7a (diff) |
Print trailing metadata in the "grpc_cli call" command.
This often includes important debugging information when the RPC returns
a non-OK status.
Diffstat (limited to 'test')
-rw-r--r-- | test/cpp/util/grpc_tool.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/cpp/util/grpc_tool.cc b/test/cpp/util/grpc_tool.cc index 30c43b206f..e9dd7512c4 100644 --- a/test/cpp/util/grpc_tool.cc +++ b/test/cpp/util/grpc_tool.cc @@ -747,6 +747,8 @@ bool GrpcTool::CallMethod(int argc, const char** argv, } } Status status = call.Finish(&server_trailing_metadata); + PrintMetadata(server_trailing_metadata, + "Received trailing metadata from server:"); if (status.ok()) { fprintf(stderr, "Rpc succeeded with OK status\n"); return true; |