forked from eden-emu/eden
		
	Make yuzu-cmd respect log_filter setting
Because logging infrastructure initializes before the loading of the config, it reads the default setting for log_filter and ignores the one set in config. To change log_filter after logging initialization some additional calls need to be made.
This commit is contained in:
		
							parent
							
								
									7fe89bf205
								
							
						
					
					
						commit
						3d63ebf6c9
					
				
					 1 changed files with 6 additions and 0 deletions
				
			
		|  | @ -138,6 +138,12 @@ int main(int argc, char** argv) { | ||||||
| 
 | 
 | ||||||
|     Config config{config_path}; |     Config config{config_path}; | ||||||
| 
 | 
 | ||||||
|  |     // apply the log_filter setting
 | ||||||
|  |     // the logger was initialized before and doesn't pick up the filter on its own
 | ||||||
|  |     Common::Log::Filter filter; | ||||||
|  |     filter.ParseFilterString(Settings::values.log_filter.GetValue()); | ||||||
|  |     Common::Log::SetGlobalFilter(filter); | ||||||
|  | 
 | ||||||
|     if (!program_args.empty()) { |     if (!program_args.empty()) { | ||||||
|         Settings::values.program_args = program_args; |         Settings::values.program_args = program_args; | ||||||
|     } |     } | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Nikita Strygin
						Nikita Strygin