add more logs for plugin download

Change-Id: I7f20a5388a1f4227181864930bde5922fd6d65e8
This commit is contained in:
lane.wei 2022-08-04 21:16:48 +08:00 committed by Lane.Wei
parent 8300c386e0
commit b4c7d5b65b
2 changed files with 24 additions and 17 deletions

View file

@ -46,12 +46,12 @@ void UpgradeNetworkJob::process()
{
// downloading
int result = 0;
AppConfig* app_config = wxGetApp().app_config;
if (!app_config)
return;
BOOST_LOG_TRIVIAL(info) << "[download_plugin]: enter";
BOOST_LOG_TRIVIAL(info) << "[UpgradeNetworkJob process]: enter";
// get temp path
fs::path target_file_path = (fs::temp_directory_path() / "network_plugin.zip");
@ -74,7 +74,7 @@ void UpgradeNetworkJob::process()
}
curr_percent = percent;
}, cancel_fn);
if (was_canceled()) {
update_status(0, _L("Cancelled"));
wxCommandEvent event(wxEVT_CLOSE_WINDOW);
@ -118,6 +118,7 @@ void UpgradeNetworkJob::process()
wxCommandEvent event(EVT_UPGRADE_NETWORK_SUCCESS);
event.SetEventObject(m_event_handle);
wxPostEvent(m_event_handle, event);
BOOST_LOG_TRIVIAL(info) << "[UpgradeNetworkJob process]: exit";
return;
}