Compare commits
	
		
			1 Commits
		
	
	
		
			a123beb301
			...
			60d07f2eb6
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 60d07f2eb6 | 
							
								
								
									
										10
									
								
								src/main.cpp
									
									
									
									
									
								
							
							
						
						
									
										10
									
								
								src/main.cpp
									
									
									
									
									
								
							| @@ -61,7 +61,7 @@ int main(int argc, char *argv[]) { | ||||
|     // clang-format off | ||||
|     desc.add_options() | ||||
|         ("help,h", "Print help message") | ||||
|         ("verbose,v", po::value<int>()->implicit_value(0), "Sets logging verbosity") | ||||
|         ("verbose,v", po::value<int>()->default_value(4), "Sets logging verbosity") | ||||
|         ("logfile,l", po::value<std::string>(), "Sets default log file.") | ||||
|         ("disass,d", po::value<std::string>()->implicit_value(""), "Enables disassembly") | ||||
|         ("gdb-port,g", po::value<unsigned>()->default_value(0), "enable gdb server and specify port to use") | ||||
| @@ -93,11 +93,9 @@ int main(int argc, char *argv[]) { | ||||
|  | ||||
|     LOGGER(DEFAULT)::print_time() = false; | ||||
|     LOGGER(connection)::print_time() = false; | ||||
|     if (clim.count("verbose")) { | ||||
|         auto l = logging::as_log_level(clim["verbose"].as<int>()); | ||||
|         LOGGER(DEFAULT)::reporting_level() = l; | ||||
|         LOGGER(connection)::reporting_level() = l; | ||||
|     } | ||||
|     auto l = logging::as_log_level(clim["verbose"].as<int>()); | ||||
|     LOGGER(DEFAULT)::reporting_level() = l; | ||||
|     LOGGER(connection)::reporting_level() = l; | ||||
|     if (clim.count("logfile")) { | ||||
|         // configure the connection logger | ||||
|         auto f = fopen(clim["logfile"].as<std::string>().c_str(), "w"); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user