Skip to content

Commit

Permalink
Log message without truncation while leaving grpc limits as is
Browse files Browse the repository at this point in the history
  • Loading branch information
asamadiya authored Sep 21, 2023
1 parent 0997796 commit 95a7071
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tensorflow_serving/model_servers/grpc_status_util.cc
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ ::grpc::Status ToGRPCStatus(const ::tensorflow::Status& status) {
if (status.message().length() > kErrorMessageLimit) {
error_message = absl::StrCat(status.message().substr(0, kErrorMessageLimit),
"...TRUNCATED");
LOG(WARNING) << "Untruncated Message: " << status.message();
} else {
error_message = status.message();
}
Expand Down

0 comments on commit 95a7071

Please sign in to comment.