diff options
author | Craig Tiller <ctiller@google.com> | 2016-09-07 11:28:56 -0700 |
---|---|---|
committer | Craig Tiller <ctiller@google.com> | 2016-09-07 11:28:56 -0700 |
commit | bd37a21c2605abcd07f0aea2e4ddb258a88eda22 (patch) | |
tree | 04c140bec14fa30466978588a7e09b6564f88cac /test/cpp/qps | |
parent | fd4c6471ce543f1185a1e46643943f551d675807 (diff) |
Cleanup, debug support
Diffstat (limited to 'test/cpp/qps')
-rw-r--r-- | test/cpp/qps/client_sync.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/cpp/qps/client_sync.cc b/test/cpp/qps/client_sync.cc index 8062424a1f..ef54b4b766 100644 --- a/test/cpp/qps/client_sync.cc +++ b/test/cpp/qps/client_sync.cc @@ -130,6 +130,9 @@ class SynchronousUnaryClient GRPC_FINAL : public SynchronousClient { grpc::Status s = stub->UnaryCall(&context, request_, &responses_[thread_idx]); entry->set_value((UsageTimer::Now() - start) * 1e9); + if (!s.ok()) { + gpr_log(GPR_ERROR, "RPC error: %d: %s", s.error_code(), s.error_message().c_str()); + } return s.ok(); } }; |