mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-07-31 23:02:06 +00:00
feature add log info for server data error.
This commit is contained in:
@@ -4876,7 +4876,10 @@ void GUI_App::check_new_version_sf(bool show_tips, bool by_user)
|
|||||||
if (by_user)
|
if (by_user)
|
||||||
evt->SetInt(UPDATE_BY_USER);
|
evt->SetInt(UPDATE_BY_USER);
|
||||||
GUI::wxGetApp().QueueEvent(evt);
|
GUI::wxGetApp().QueueEvent(evt);
|
||||||
} catch (...) {}
|
} catch (const std::exception& ex) {
|
||||||
|
std::string errorMsg = ex.what();
|
||||||
|
BOOST_LOG_TRIVIAL(fatal) << "request server soft update data error:" << errorMsg;
|
||||||
|
}
|
||||||
})
|
})
|
||||||
.perform_sync();
|
.perform_sync();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -814,7 +814,10 @@ void PresetUpdater::priv::sync_update_flutter_resource(bool isAuto_check)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
} catch (...) {}
|
} catch (const std::exception& ex) {
|
||||||
|
std::string errorMsg = ex.what();
|
||||||
|
BOOST_LOG_TRIVIAL(fatal) << "request server flutter update data error:" << errorMsg;
|
||||||
|
}
|
||||||
})
|
})
|
||||||
.perform_sync();
|
.perform_sync();
|
||||||
}
|
}
|
||||||
@@ -920,7 +923,10 @@ void PresetUpdater::priv::sync_config(bool isAuto_check)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
} catch (...) {}
|
} catch (const std::exception& ex) {
|
||||||
|
std::string errorMsg = ex.what();
|
||||||
|
BOOST_LOG_TRIVIAL(fatal) << "request server preset update data error:" << errorMsg;
|
||||||
|
}
|
||||||
})
|
})
|
||||||
.perform_sync();
|
.perform_sync();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user