Skip to content

Commit b582978

Browse files
committed
taskresolver uses VTR_LOG_ERROR instead of std::cerr
1 parent b2bd272 commit b582978

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

vpr/src/server/taskresolver.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ void TaskResolver::takeFinished(std::vector<TaskPtr>& result)
4949
}
5050

5151
e_timing_report_detail TaskResolver::getDetailsLevelEnum(const std::string& pathDetailsLevelStr) const {
52-
e_timing_report_detail detailesLevel = e_timing_report_detail::NETLIST;
52+
e_timing_report_detail detailesLevel = e_timing_report_detail::INVALID;
5353
if (pathDetailsLevelStr == "netlist") {
5454
detailesLevel = e_timing_report_detail::NETLIST;
5555
} else if (pathDetailsLevelStr == "aggregated") {
@@ -59,7 +59,7 @@ e_timing_report_detail TaskResolver::getDetailsLevelEnum(const std::string& path
5959
} else if (pathDetailsLevelStr == "debug") {
6060
detailesLevel = e_timing_report_detail::DEBUG;
6161
} else {
62-
std::cerr << "unhandled option" << pathDetailsLevelStr << std::endl;
62+
VTR_LOG_ERROR("unhandled option", pathDetailsLevelStr);
6363
}
6464
return detailesLevel;
6565
}
@@ -115,12 +115,12 @@ void TaskResolver::processGetPathListTask(ezgl::application*, const TaskPtr& tas
115115
task->success(msg);
116116
} else {
117117
std::string msg{"Critical paths report is empty"};
118-
std::cerr << msg << std::endl;
118+
VTR_LOG_ERROR(msg.c_str());
119119
task->fail(msg);
120120
}
121121
} else {
122122
std::string msg{"options errors in get crit path list telegram: " + options.errorsStr()};
123-
std::cerr << msg << std::endl;
123+
VTR_LOG_ERROR(msg.c_str());
124124
task->fail(msg);
125125
}
126126
}
@@ -147,12 +147,12 @@ void TaskResolver::processDrawCriticalPathTask(ezgl::application* app, const Tas
147147
task->success();
148148
} else {
149149
std::string msg{"cannot find ToggleCritPath qcombobox index for item " + highLightMode};
150-
std::cerr << msg << std::endl;
150+
VTR_LOG_ERROR(msg.c_str());
151151
task->fail(msg);
152152
}
153153
} else {
154154
std::string msg{"options errors in highlight crit path telegram: " + options.errorsStr()};
155-
std::cerr << msg << std::endl;
155+
VTR_LOG_ERROR(msg.c_str());
156156
task->fail(msg);
157157
}
158158
}

0 commit comments

Comments
 (0)