mirror of
https://github.com/monero-project/monero.git
synced 2025-12-31 23:16:03 -08:00
Merge pull request #2512
792ba4f0Log categories can now be added to and removed from (moneromooo-monero)48f92eb6easylogging++: add categories getter (moneromooo-monero)f35afe62epee: factor log level/categories setting (moneromooo-monero)
This commit is contained in:
@@ -125,12 +125,17 @@ bool t_command_parser_executor::print_blockchain_info(const std::vector<std::str
|
||||
|
||||
bool t_command_parser_executor::set_log_level(const std::vector<std::string>& args)
|
||||
{
|
||||
if(args.size() != 1)
|
||||
if(args.size() > 1)
|
||||
{
|
||||
std::cout << "use: set_log [<log_level_number_0-4> | <categories>]" << std::endl;
|
||||
return true;
|
||||
}
|
||||
|
||||
if (args.empty())
|
||||
{
|
||||
return m_executor.set_log_categories("+");
|
||||
}
|
||||
|
||||
uint16_t l = 0;
|
||||
if(epee::string_tools::get_xtype_from_string(l, args[0]))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user