mirror of
https://github.com/monero-project/monero.git
synced 2026-08-03 01:15:55 -07: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:
@@ -831,6 +831,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;
|
||||
}
|
||||
|
||||
@@ -981,8 +981,11 @@ namespace cryptonote
|
||||
struct response
|
||||
{
|
||||
std::string status;
|
||||
std::string categories;
|
||||
|
||||
BEGIN_KV_SERIALIZE_MAP()
|
||||
KV_SERIALIZE(status)
|
||||
KV_SERIALIZE(categories)
|
||||
END_KV_SERIALIZE_MAP()
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user