Log categories can now be added to and removed from

Also, set_log without parameters now prints the log categories
This commit is contained in:
moneromooo-monero
2017-09-22 17:54:58 +01:00
parent 48f92eb665
commit 792ba4f0fe
8 changed files with 57 additions and 8 deletions

View File

@@ -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;
}