mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-30 20:21:12 -06:00 
			
		
		
		
	add more logs for debugging
Change-Id: I420e6e60901a32cc378c09ed57fba2ee1ac688df
This commit is contained in:
		
							parent
							
								
									0d1242d9c6
								
							
						
					
					
						commit
						4d52b8a44a
					
				
					 2 changed files with 15 additions and 8 deletions
				
			
		|  | @ -109,15 +109,18 @@ GuideFrame::~GuideFrame() | |||
| 
 | ||||
| void GuideFrame::load_url(wxString &url) | ||||
| { | ||||
|     BOOST_LOG_TRIVIAL(trace) << "app_start: GuideFrame url=" << url.ToStdString(); | ||||
|     BOOST_LOG_TRIVIAL(info) << __FUNCTION__<< " enter, url=" << url.ToStdString(); | ||||
|     this->Show(); | ||||
|     WebView::LoadUrl(m_browser, url); | ||||
|     m_browser->SetFocus(); | ||||
|     UpdateState(); | ||||
| 
 | ||||
|     BOOST_LOG_TRIVIAL(info) << __FUNCTION__<< " exit"; | ||||
| } | ||||
| 
 | ||||
| wxString GuideFrame::SetStartPage(GuidePage startpage, bool load) | ||||
| { | ||||
|     BOOST_LOG_TRIVIAL(info) << __FUNCTION__<< boost::format(" enter, load=%1%, start_page=%2%")%load%int(startpage); | ||||
|     //wxLogMessage("GUIDE: webpage_1  %s", (boost::filesystem::path(resources_dir()) / "web\\guide\\1\\index.html").make_preferred().string().c_str() );
 | ||||
|     wxString TargetUrl = from_u8( (boost::filesystem::path(resources_dir()) / "web/guide/1/index.html").make_preferred().string() ); | ||||
|     //wxLogMessage("GUIDE: webpage_2  %s", TargetUrl.mb_str());
 | ||||
|  | @ -153,6 +156,7 @@ wxString GuideFrame::SetStartPage(GuidePage startpage, bool load) | |||
|     } | ||||
| 
 | ||||
|     std::string strlang = wxGetApp().app_config->get("language"); | ||||
|     BOOST_LOG_TRIVIAL(info) << __FUNCTION__<< boost::format(", strlang=%1%")%strlang; | ||||
|     if (strlang != "") | ||||
|         TargetUrl = wxString::Format("%s?lang=%s", w2s(TargetUrl), strlang); | ||||
| 
 | ||||
|  | @ -160,6 +164,7 @@ wxString GuideFrame::SetStartPage(GuidePage startpage, bool load) | |||
|     if (load) | ||||
|         load_url(TargetUrl); | ||||
| 
 | ||||
|     BOOST_LOG_TRIVIAL(info) << __FUNCTION__<< " exit"; | ||||
|     return TargetUrl; | ||||
| } | ||||
| 
 | ||||
|  | @ -353,8 +358,8 @@ void GuideFrame::OnScriptMessage(wxWebViewEvent &evt) | |||
|             } | ||||
| 
 | ||||
|             this->EndModal(wxID_OK); | ||||
|    | ||||
|             if (InstallNetplugin)  | ||||
| 
 | ||||
|             if (InstallNetplugin) | ||||
|                 GUI::wxGetApp().CallAfter([this] { GUI::wxGetApp().ShowDownNetPluginDlg(); }); | ||||
| 
 | ||||
|             if (bLogin) | ||||
|  | @ -365,7 +370,7 @@ void GuideFrame::OnScriptMessage(wxWebViewEvent &evt) | |||
|             this->Close(); | ||||
|         } else if (strCmd == "save_region") { | ||||
|             m_Region = j["region"]; | ||||
|         }  | ||||
|         } | ||||
|         else if (strCmd == "network_plugin_install") { | ||||
|             std::string sAction = j["data"]["action"]; | ||||
| 
 | ||||
|  | @ -925,7 +930,7 @@ int GuideFrame::LoadProfile() | |||
|         //----region
 | ||||
|         m_Region = wxGetApp().app_config->get("region"); | ||||
|         m_ProfileJson["region"] = m_Region; | ||||
|                                                                            | ||||
| 
 | ||||
|         m_ProfileJson["network_plugin_install"] = wxGetApp().app_config->get("app","installed_networking"); | ||||
|         m_ProfileJson["network_plugin_compability"] = wxGetApp().is_compatibility_version() ? "1" : "0"; | ||||
|     } | ||||
|  |  | |||
|  | @ -141,7 +141,9 @@ int NetworkAgent::initialize_network_module() | |||
|         library = std::string("lib") + BAMBU_NETWORK_LIBRARY + ".so"; | ||||
|         #endif*/ | ||||
|         //netwoking_module = dlopen( library.c_str(), RTLD_LAZY);
 | ||||
|         BOOST_LOG_TRIVIAL(info) << __FUNCTION__ << boost::format(", error, dlerror is %1%")%dlerror(); | ||||
|         char* dll_error = dlerror(); | ||||
|         printf("error, dlerror is %s\n", dll_error); | ||||
|         BOOST_LOG_TRIVIAL(info) << __FUNCTION__ << boost::format(", error, dlerror is %1%")%dll_error; | ||||
|     } | ||||
|     printf("after dlopen, network_module is %p\n", netwoking_module); | ||||
| #endif | ||||
|  | @ -383,13 +385,13 @@ std::string NetworkAgent::get_version() | |||
| #endif | ||||
|     } | ||||
|     if (!consistent) { | ||||
|         BOOST_LOG_TRIVIAL(warning) << __FUNCTION__ << boost::format(", inconsistent library,return 00.00.00.00!"); | ||||
|         BOOST_LOG_TRIVIAL(warning) << __FUNCTION__ << boost::format(", inconsistent library,return 00.00.00.00!"); | ||||
|         return "00.00.00.00"; | ||||
|     } | ||||
|     if (get_version_ptr) { | ||||
|         return get_version_ptr(); | ||||
|     } | ||||
|     BOOST_LOG_TRIVIAL(warning) << __FUNCTION__ << boost::format(", get_version not supported,return 00.00.00.00!"); | ||||
|     BOOST_LOG_TRIVIAL(warning) << __FUNCTION__ << boost::format(", get_version not supported,return 00.00.00.00!"); | ||||
|     return "00.00.00.00"; | ||||
| } | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 lane.wei
						lane.wei