Skip to content

Commit

Permalink
Added error msg print
Browse files Browse the repository at this point in the history
  • Loading branch information
oandreeva-nv committed Mar 14, 2024
1 parent df39ad5 commit d3eb89c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/python_be.cc
Original file line number Diff line number Diff line change
Expand Up @@ -393,8 +393,10 @@ ModelInstanceState::SaveRequestsToSharedMemory(
const char* val = nullptr;
if (triton_trace != nullptr) {
err = TRITONSERVER_InferenceTraceContext(triton_trace, &val);
if (err != nullptr)
if (err != nullptr) {
LOG_MESSAGE(TRITONSERVER_LOG_ERROR, TRITONSERVER_ErrorMessage(err));
TRITONSERVER_ErrorDelete(err);
}
}
std::string context = (val != nullptr) ? std::string(val) : "";

Expand Down

0 comments on commit d3eb89c

Please sign in to comment.