mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-30 20:21:12 -06:00 
			
		
		
		
	adjust the log level for released version
Change-Id: Id874cc5b84a1c236dc00d9430867a913b0417beb
This commit is contained in:
		
							parent
							
								
									4544dad62c
								
							
						
					
					
						commit
						0f987e993a
					
				
					 3 changed files with 3 additions and 7 deletions
				
			
		|  | @ -1417,14 +1417,15 @@ bool GUI_App::OnInit() | |||
| bool GUI_App::on_init_inner() | ||||
| { | ||||
|     //start log here
 | ||||
| #if !BBL_RELEASE_TO_PUBLIC | ||||
|     std::time_t t = std::time(0); | ||||
|     std::tm* now_time = std::localtime(&t); | ||||
|     std::stringstream buf; | ||||
|     buf << std::put_time(now_time, "debug_%a_%b_%d_%H_%M_%S.log"); | ||||
|     std::string log_filename = buf.str(); | ||||
| #if !BBL_RELEASE_TO_PUBLIC | ||||
|     set_log_path_and_level(log_filename, 5); | ||||
| #else | ||||
|     set_log_path_and_level(log_filename, 3); | ||||
| #endif | ||||
| 
 | ||||
|     // Set initialization of image handlers before any UI actions - See GH issue #7469
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 lane.wei
						lane.wei