From 2ccb30d3789415cf89e828927340170d9eb341a9 Mon Sep 17 00:00:00 2001 From: fjjohnchen Date: Sat, 28 Sep 2019 17:31:37 +0800 Subject: [PATCH] log the errors always --- mediapipe/framework/calculator_graph.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mediapipe/framework/calculator_graph.cc b/mediapipe/framework/calculator_graph.cc index ecc50cd1d..35f95cbca 100644 --- a/mediapipe/framework/calculator_graph.cc +++ b/mediapipe/framework/calculator_graph.cc @@ -934,10 +934,10 @@ void CalculatorGraph::RecordError(const ::mediapipe::Status& error) { for (const auto& stream : graph_output_streams_) { stream->NotifyError(); } + for (const ::mediapipe::Status& error : errors_) { + LOG(ERROR) << error; + } if (errors_.size() > kMaxNumAccumulatedErrors) { - for (const ::mediapipe::Status& error : errors_) { - LOG(ERROR) << error; - } LOG(FATAL) << "Forcefully aborting to prevent the framework running out " "of memory."; }