mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Add a 'verbose' flag.
This commit is contained in:
@@ -89,6 +89,7 @@ int main(int argc, char* argv[])
|
||||
("rpc", "Perform rpc command (default).")
|
||||
("test,t", "Perform unit tests.")
|
||||
("parameters", po::value< vector<string> >(), "Specify comma separated parameters.")
|
||||
("verbose,v", "Increase log level")
|
||||
;
|
||||
|
||||
// Interpret positional arguments as --parameters.
|
||||
@@ -130,6 +131,11 @@ int main(int argc, char* argv[])
|
||||
}
|
||||
}
|
||||
|
||||
if (vm.count("verbose"))
|
||||
{
|
||||
Log::setMinSeverity(lsTRACE);
|
||||
}
|
||||
|
||||
if (!iResult)
|
||||
{
|
||||
theConfig.setup(vm.count("conf") ? vm["conf"].as<std::string>() : "");
|
||||
|
||||
Reference in New Issue
Block a user