ENH: move some level

jira: [none]
Change-Id: Ibd0d380b16b30f63144d38a0c34972d8b7c4153f
(cherry picked from commit 2da69efd9b0db6c2be6a1b3985bbafb7afc5d3be)
This commit is contained in:
xin.zhang
2025-03-27 17:08:53 +08:00
committed by Noisyfox
parent 8eee80286b
commit 38a71f527e
7 changed files with 9 additions and 9 deletions

View File

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

View File

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

View File

@@ -704,7 +704,7 @@ std::string get_error_message(int error_code)
}
})
.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();
return result_str;

View File

@@ -97,7 +97,7 @@ void BindJob::process(Ctl &ctl)
);
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) {
int error_code;
@@ -119,7 +119,7 @@ void BindJob::process(Ctl &ctl)
DeviceManager* dev = Slic3r::GUI::wxGetApp().getDeviceManager();
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);
return;
}

View File

@@ -1120,7 +1120,7 @@ void SelectMachineDialog::finish_mode()
void SelectMachineDialog::sync_ams_mapping_result(std::vector<FilamentInfo> &result)
{
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++) {
wxString ams_id = "Ext";//
wxColour ams_col = wxColour(0xCE, 0xCE, 0xCE);
@@ -2580,7 +2580,7 @@ void SelectMachineDialog::on_send_print()
if (!obj_->is_lan_mode_printer()) {
result = m_plater->export_config_3mf(m_print_plate_idx);
if (result < 0) {
BOOST_LOG_TRIVIAL(trace) << "export_config_3mf failed, result = " << result;
BOOST_LOG_TRIVIAL(info) << "export_config_3mf failed, result = " << result;
return;
}
}

View File

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

View File

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