feature add log info for server data error.

This commit is contained in:
alves
2026-01-22 15:59:20 +08:00
parent 7496e9acd0
commit 2ddac78309
2 changed files with 12 additions and 3 deletions

View File

@@ -4876,7 +4876,10 @@ void GUI_App::check_new_version_sf(bool show_tips, bool by_user)
if (by_user)
evt->SetInt(UPDATE_BY_USER);
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();
}

View File

@@ -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();
}
@@ -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();
}