aboutsummaryrefslogtreecommitdiff
path: root/src/rpc/core_rpc_server.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/rpc/core_rpc_server.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 'src/rpc/core_rpc_server.cpp')
-rw-r--r--src/rpc/core_rpc_server.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/rpc/core_rpc_server.cpp b/src/rpc/core_rpc_server.cpp
index 1f7f4a1ff..8f157dea2 100644
--- a/src/rpc/core_rpc_server.cpp
+++ b/src/rpc/core_rpc_server.cpp
@@ -810,6 +810,7 @@ namespace cryptonote
bool core_rpc_server::on_set_log_categories(const COMMAND_RPC_SET_LOG_CATEGORIES::request& req, COMMAND_RPC_SET_LOG_CATEGORIES::response& res)
{
mlog_set_log(req.categories.c_str());
+ res.categories = mlog_get_categories();
res.status = CORE_RPC_STATUS_OK;
return true;
}