aboutsummaryrefslogtreecommitdiff
path: root/src/daemon/command_parser_executor.cpp
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2017-09-22 17:54:58 +0100
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2017-09-22 18:08:14 +0100
commit792ba4f0fe88cb29e28d3bede2eacafce154bb64 (patch)
tree97bf6d4a5932dd431e29432c8aa7df561d712416 /src/daemon/command_parser_executor.cpp
parenteasylogging++: add categories getter (diff)
downloadmonero-792ba4f0fe88cb29e28d3bede2eacafce154bb64.tar.xz
Log categories can now be added to and removed from
Also, set_log without parameters now prints the log categories
Diffstat (limited to '')
-rw-r--r--src/daemon/command_parser_executor.cpp7
1 files changed, 6 insertions, 1 deletions
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<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]))
{