Skip to content

Commit

Permalink
Replace CHECK() by a warning in MapBuilderStub::SerializeState() (#1364)
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelGrupp authored and wally-the-cartographer committed Aug 2, 2018
1 parent 39e5943 commit 4cd1528
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions cartographer/cloud/client/map_builder_stub.cc
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,10 @@ std::string MapBuilderStub::SubmapToProto(

void MapBuilderStub::SerializeState(bool include_unfinished_submaps,
io::ProtoStreamWriterInterface* writer) {
CHECK(!include_unfinished_submaps)
<< "Writing of unfinished submaps is unsupported.";
if (!include_unfinished_submaps) {
LOG(WARNING) << "Serializing unfinished submaps is currently unsupported. "
"Proceeding to write the state without them.";
}
google::protobuf::Empty request;
async_grpc::Client<handlers::WriteStateSignature> client(client_channel_);
CHECK(client.Write(request));
Expand Down

0 comments on commit 4cd1528

Please sign in to comment.