From 792ba4f0fe88cb29e28d3bede2eacafce154bb64 Mon Sep 17 00:00:00 2001 From: moneromooo-monero Date: Fri, 22 Sep 2017 17:54:58 +0100 Subject: Log categories can now be added to and removed from Also, set_log without parameters now prints the log categories --- src/daemon/command_parser_executor.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/daemon/command_parser_executor.cpp') diff --git a/src/daemon/command_parser_executor.cpp b/src/daemon/command_parser_executor.cpp index d949a57b1..7d6464033 100644 --- a/src/daemon/command_parser_executor.cpp +++ b/src/daemon/command_parser_executor.cpp @@ -125,12 +125,17 @@ bool t_command_parser_executor::print_blockchain_info(const std::vector& args) { - if(args.size() != 1) + if(args.size() > 1) { std::cout << "use: set_log [ | ]" << 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])) { -- cgit v1.2.3