changes default loglevel to info for tgc-sim
This commit is contained in:
parent
a123beb301
commit
60d07f2eb6
10
src/main.cpp
10
src/main.cpp
|
@ -61,7 +61,7 @@ int main(int argc, char *argv[]) {
|
||||||
// clang-format off
|
// clang-format off
|
||||||
desc.add_options()
|
desc.add_options()
|
||||||
("help,h", "Print help message")
|
("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.")
|
("logfile,l", po::value<std::string>(), "Sets default log file.")
|
||||||
("disass,d", po::value<std::string>()->implicit_value(""), "Enables disassembly")
|
("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")
|
("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(DEFAULT)::print_time() = false;
|
||||||
LOGGER(connection)::print_time() = false;
|
LOGGER(connection)::print_time() = false;
|
||||||
if (clim.count("verbose")) {
|
auto l = logging::as_log_level(clim["verbose"].as<int>());
|
||||||
auto l = logging::as_log_level(clim["verbose"].as<int>());
|
LOGGER(DEFAULT)::reporting_level() = l;
|
||||||
LOGGER(DEFAULT)::reporting_level() = l;
|
LOGGER(connection)::reporting_level() = l;
|
||||||
LOGGER(connection)::reporting_level() = l;
|
|
||||||
}
|
|
||||||
if (clim.count("logfile")) {
|
if (clim.count("logfile")) {
|
||||||
// configure the connection logger
|
// configure the connection logger
|
||||||
auto f = fopen(clim["logfile"].as<std::string>().c_str(), "w");
|
auto f = fopen(clim["logfile"].as<std::string>().c_str(), "w");
|
||||||
|
|
Loading…
Reference in New Issue