ENH: move some level

jira: [none]
Change-Id: Ibd0d380b16b30f63144d38a0c34972d8b7c4153f
This commit is contained in:
xin.zhang 2025-03-27 17:08:53 +08:00 committed by lane.wei
parent 8fbbf8f34f
commit 2da69efd9b
8 changed files with 11 additions and 11 deletions

View File

@ -660,7 +660,7 @@ std::string AppConfig::load()
if (iter.value().is_string()) if (iter.value().is_string())
m_storage[it.key()][iter.key()] = iter.value().get<std::string>(); m_storage[it.key()][iter.key()] = iter.value().get<std::string>();
else { else {
BOOST_LOG_TRIVIAL(trace) << "load config warning..."; BOOST_LOG_TRIVIAL(warning) << "load config warning...";
} }
} }
} }

View File

@ -4502,7 +4502,7 @@ std::string GUI_App::handle_web_request(std::string cmd)
} }
} }
catch (...) { catch (...) {
BOOST_LOG_TRIVIAL(trace) << "parse json cmd failed " << cmd; BOOST_LOG_TRIVIAL(warning) << "parse json cmd failed " << cmd;
return ""; return "";
} }
return ""; return "";

View File

@ -709,7 +709,7 @@ std::string get_error_message(int error_code)
} }
}) })
.on_error([](std::string body, std::string error, unsigned status) { .on_error([](std::string body, std::string error, unsigned status) {
BOOST_LOG_TRIVIAL(trace) << boost::format("[BBL ErrorMessage]: status=%1%, error=%2%, body=%3%") % status % error % body; BOOST_LOG_TRIVIAL(info) << boost::format("[BBL ErrorMessage]: status=%1%, error=%2%, body=%3%") % status % error % body;
}).perform_sync(); }).perform_sync();
return result_str; return result_str;

View File

@ -108,7 +108,7 @@ void BindJob::process()
); );
if (result < 0) { if (result < 0) {
BOOST_LOG_TRIVIAL(trace) << "login: result = " << result; BOOST_LOG_TRIVIAL(info) << "login: result = " << result;
if (result_code == BAMBU_NETWORK_ERR_BIND_ECODE_LOGIN_REPORT_FAILED || result_code == BAMBU_NETWORK_ERR_BIND_GET_PRINTER_TICKET_TIMEOUT) { if (result_code == BAMBU_NETWORK_ERR_BIND_ECODE_LOGIN_REPORT_FAILED || result_code == BAMBU_NETWORK_ERR_BIND_GET_PRINTER_TICKET_TIMEOUT) {
int error_code; int error_code;
@ -130,7 +130,7 @@ void BindJob::process()
DeviceManager* dev = Slic3r::GUI::wxGetApp().getDeviceManager(); DeviceManager* dev = Slic3r::GUI::wxGetApp().getDeviceManager();
if (!dev) { if (!dev) {
BOOST_LOG_TRIVIAL(trace) << "login: dev is null"; BOOST_LOG_TRIVIAL(error) << "login: dev is null";
post_fail_event(result_code, result_info); post_fail_event(result_code, result_info);
return; return;
} }

View File

@ -1122,7 +1122,7 @@ void SelectMachineDialog::finish_mode()
void SelectMachineDialog::sync_ams_mapping_result(std::vector<FilamentInfo> &result) void SelectMachineDialog::sync_ams_mapping_result(std::vector<FilamentInfo> &result)
{ {
if (result.empty()) { if (result.empty()) {
BOOST_LOG_TRIVIAL(trace) << "ams_mapping result is empty"; BOOST_LOG_TRIVIAL(info) << "ams_mapping result is empty";
for (auto it = m_materialList.begin(); it != m_materialList.end(); it++) { for (auto it = m_materialList.begin(); it != m_materialList.end(); it++) {
wxString ams_id = "Ext";// wxString ams_id = "Ext";//
wxColour ams_col = wxColour(0xCE, 0xCE, 0xCE); wxColour ams_col = wxColour(0xCE, 0xCE, 0xCE);
@ -2592,7 +2592,7 @@ void SelectMachineDialog::on_send_print()
if (!obj_->is_lan_mode_printer()) { if (!obj_->is_lan_mode_printer()) {
result = m_plater->export_config_3mf(m_print_plate_idx); result = m_plater->export_config_3mf(m_print_plate_idx);
if (result < 0) { if (result < 0) {
BOOST_LOG_TRIVIAL(trace) << "export_config_3mf failed, result = " << result; BOOST_LOG_TRIVIAL(info) << "export_config_3mf failed, result = " << result;
return; return;
} }
} }

View File

@ -663,7 +663,7 @@ void SendMultiMachinePage::on_send(wxCommandEvent& event)
// export config 3mf if needed // export config 3mf if needed
result = m_plater->export_config_3mf(m_print_plate_idx); result = m_plater->export_config_3mf(m_print_plate_idx);
if (result < 0) { if (result < 0) {
BOOST_LOG_TRIVIAL(trace) << "export_config_3mf failed, result = " << result; BOOST_LOG_TRIVIAL(info) << "export_config_3mf failed, result = " << result;
return; return;
} }

View File

@ -840,7 +840,7 @@ void SendToPrinterDialog::on_ok(wxCommandEvent &event)
if (!obj_->is_lan_mode_printer()) { if (!obj_->is_lan_mode_printer()) {
result = m_plater->export_config_3mf(m_print_plate_idx); result = m_plater->export_config_3mf(m_print_plate_idx);
if (result < 0) { if (result < 0) {
BOOST_LOG_TRIVIAL(trace) << "export_config_3mf failed, result = " << result; BOOST_LOG_TRIVIAL(info) << "export_config_3mf failed, result = " << result;
return; return;
} }
} }