@@ -12,14 +12,12 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
12
See the License for the specific language governing permissions and
13
13
limitations under the License. */
14
14
15
- #include " paddle/fluid/operators/distributed/grpc_client.h"
16
-
17
15
#include < sys/time.h>
18
-
19
16
#include < limits>
20
17
21
18
#include " glog/logging.h" // For VLOG
22
19
#include " paddle/fluid/framework/threadpool.h"
20
+ #include " paddle/fluid/operators/distributed/grpc_client.h"
23
21
#include " paddle/fluid/operators/distributed/grpc_serde.h"
24
22
#include " paddle/fluid/operators/distributed/request_handler.h"
25
23
#include " paddle/fluid/platform/profiler.h"
@@ -336,16 +334,22 @@ void GRPCClient::Proceed() {
336
334
VLOG (3 ) << c->GetVarHandlePtr ()->String () << " process" ;
337
335
c->Process ();
338
336
} else if (c->status_ .error_code () == grpc::StatusCode::DEADLINE_EXCEEDED) {
337
+ // FIXME(gongwb): parse error_details?
339
338
LOG (ERROR) << c->GetVarHandlePtr ()->String ()
340
- << " meets grpc error:" << c->status_ .error_message ();
339
+ << " meets grpc error, error_code:" << c->status_ .error_code ()
340
+ << " error_message:" << c->status_ .error_message ()
341
+ << " error_details:" << c->status_ .error_details ();
341
342
{
342
343
std::lock_guard<std::mutex> lk (sync_mutex_);
343
344
ok_ = false ;
344
345
}
345
346
c->Finish (false );
346
347
} else {
347
348
LOG (FATAL) << c->GetVarHandlePtr ()->String ()
348
- << " meets grpc error:" << c->status_ .error_message ();
349
+ << " meets grpc error, error_code:" << c->status_ .error_code ()
350
+ << " error_message:" << c->status_ .error_message ()
351
+ << " error_details:" << c->status_ .error_details ();
352
+
349
353
c->Finish (false );
350
354
}
351
355
0 commit comments