ENH: CLI: refine some logs

JIRA: STUDIO-XXXX
Change-Id: Ic61f7fbffabc28a76ac186c33182b9284c1c2da1
This commit is contained in:
lane.wei 2023-09-23 17:23:07 +08:00 committed by Lane.Wei
parent b0c9b14b0d
commit 35b15a1aa1
1 changed files with 2 additions and 2 deletions

View File

@ -3324,10 +3324,10 @@ int CLI::run(int argc, char **argv)
sliced_plate_info.warning_message = status.text;
if (status.warning_level == PrintStateBase::WarningLevel::NON_CRITICAL) {
BOOST_LOG_TRIVIAL(warning) << "plate "<< index+1<< ": found slicing warnings: "<<status.text <<std::endl;
BOOST_LOG_TRIVIAL(warning) << "plate "<< index+1<< ": found NON_CRITICAL slicing warnings: "<<status.text <<std::endl;
}
else {
BOOST_LOG_TRIVIAL(error) << "plate "<< index+1<< ": found slicing error: "<<status.text <<std::endl;
BOOST_LOG_TRIVIAL(warning) << boost::format("plate %1%: found slicing warnings: %2%, no_check=%3%")%(index+1) %status.text %no_check;
if (!no_check) {
//only following message will be reported under import mode
if (status.message_type == PrintStateBase::SlicingEmptyGcodeLayers