Skip to content

Commit 7d5c79b

Browse files
Nielsencujonahmvp
authored andcommitted
tidy up debugging statements
Signed-off-by: Nielsencu <nielsencugito@gmail.com>
1 parent 610841d commit 7d5c79b

2 files changed

Lines changed: 2 additions & 5 deletions

File tree

bmf/engine/c_engine/src/graph.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -865,7 +865,6 @@ int Graph::close() {
865865
cond_close_.wait(lk);
866866
}
867867

868-
std::cout << "Tracing graph end " << std::endl;
869868
BMF_TRACE(GRAPH_END, "End");
870869

871870
if (not exception_from_scheduler_)
@@ -913,7 +912,6 @@ int Graph::force_close() {
913912
for (auto &node : nodes_) {
914913
node.second->close();
915914
}
916-
std::cout << "Tracing graph end " << std::endl;
917915
BMF_TRACE(GRAPH_END, "End");
918916
scheduler_->close();
919917
//report
@@ -1019,7 +1017,6 @@ void Graph::quit_gracefully() {
10191017
}
10201018

10211019
Graph::~Graph() {
1022-
std::cout << "Tracing graph end " << std::endl;
10231020
BMF_TRACE(GRAPH_END, "End");
10241021

10251022
if (not exception_from_scheduler_)

bmf/sdk/cpp_sdk/src/trace.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ TraceLogger::TraceLogger(int queue_size, bool loop_mode)
9494
std::stringstream tss;
9595
tss << tid;
9696
thread_name_ = tss.str();
97-
std::cout << "Creating tracelogger with buffer size of " << queue_size << std::endl;
97+
BMFLOG(BMF_DEBUG) << "Creating tracelogger with buffer size of " << queue_size << std::endl;
9898

9999
// Set the process name
100100
pid_t pid = getpid();
@@ -235,7 +235,7 @@ ThreadTrace::ThreadTrace() {
235235
// Register with Tracer
236236
thread_id_ = TraceLogger::instance()->register_queue(process_name_,
237237
thread_name_);
238-
std::cout << "Registering queue " << thread_name_ << " with local id " << thread_id_ << std::endl;
238+
BMFLOG(BMF_DEBUG) << "Registering queue " << thread_name_ << " with local id " << thread_id_ << std::endl;
239239
}
240240
}
241241

0 commit comments

Comments
 (0)