diff --git a/src/slic3r/GUI/MainFrame.cpp b/src/slic3r/GUI/MainFrame.cpp index 4369152b35..7120e6ef86 100644 --- a/src/slic3r/GUI/MainFrame.cpp +++ b/src/slic3r/GUI/MainFrame.cpp @@ -1030,6 +1030,8 @@ void MainFrame::get_local_webview_version() std::ifstream json_file(versionFilePath); if (!json_file.is_open()) { + std::ifstream json_file(versionFilePath); + BOOST_LOG_TRIVIAL(error) << "check flutter version error with file path:" << versionFilePath; return; } nlohmann::json json_data; diff --git a/src/slic3r/GUI/SSWCP.cpp b/src/slic3r/GUI/SSWCP.cpp index 513016744e..c89aeeb758 100644 --- a/src/slic3r/GUI/SSWCP.cpp +++ b/src/slic3r/GUI/SSWCP.cpp @@ -20,6 +20,7 @@ #include #include #include +#include #include @@ -90,6 +91,8 @@ bool WCP_Logger::set_level(wxString& level) } } +std::string WCP_Logger::get_pc_name() { return boost::asio::ip::host_name(); } + // Add a log message to the queue void WCP_Logger::add_log(const wxString& content, bool is_web = false, wxString time = "", wxString module = "Default", wxString level = "debug") {