mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-30 06:43:28 +01:00
Merge pull request #1712
3b6839cc
mlog: move log level changes to global level (moneromooo-monero)38a1b9c9
rpc: fix daemon mixed style set_log 2,category:level (moneromooo-monero)28d0b11f
mlog: s/Mew/New/ in log (moneromooo-monero)
This commit is contained in:
commit
b0e992237e
@ -142,7 +142,7 @@ void mlog_configure(const std::string &filename_base, bool console)
|
|||||||
void mlog_set_categories(const char *categories)
|
void mlog_set_categories(const char *categories)
|
||||||
{
|
{
|
||||||
el::Loggers::setCategories(categories);
|
el::Loggers::setCategories(categories);
|
||||||
MINFO("Mew log categories: " << categories);
|
MGINFO("New log categories: " << categories);
|
||||||
}
|
}
|
||||||
|
|
||||||
// maps epee style log level to new logging system
|
// maps epee style log level to new logging system
|
||||||
@ -150,7 +150,7 @@ void mlog_set_log_level(int level)
|
|||||||
{
|
{
|
||||||
const char *categories = get_default_categories(level);
|
const char *categories = get_default_categories(level);
|
||||||
el::Loggers::setCategories(categories);
|
el::Loggers::setCategories(categories);
|
||||||
MINFO("Mew log categories: " << categories);
|
MGINFO("New log categories: " << categories);
|
||||||
}
|
}
|
||||||
|
|
||||||
void mlog_set_log(const char *log)
|
void mlog_set_log(const char *log)
|
||||||
|
@ -737,7 +737,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)
|
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_categories(req.categories.c_str());
|
mlog_set_log(req.categories.c_str());
|
||||||
res.status = CORE_RPC_STATUS_OK;
|
res.status = CORE_RPC_STATUS_OK;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user