log the errors always

This commit is contained in:
fjjohnchen 2019-09-28 17:31:37 +08:00 committed by chenzhong.cz
parent 412ab42d1f
commit 2ccb30d378

View File

@ -934,10 +934,10 @@ void CalculatorGraph::RecordError(const ::mediapipe::Status& error) {
for (const auto& stream : graph_output_streams_) { for (const auto& stream : graph_output_streams_) {
stream->NotifyError(); stream->NotifyError();
} }
for (const ::mediapipe::Status& error : errors_) {
LOG(ERROR) << error;
}
if (errors_.size() > kMaxNumAccumulatedErrors) { if (errors_.size() > kMaxNumAccumulatedErrors) {
for (const ::mediapipe::Status& error : errors_) {
LOG(ERROR) << error;
}
LOG(FATAL) << "Forcefully aborting to prevent the framework running out " LOG(FATAL) << "Forcefully aborting to prevent the framework running out "
"of memory."; "of memory.";
} }