epee: factor log level/categories setting

This commit is contained in:
moneromooo-monero 2017-09-22 14:14:58 +01:00
parent 1f9058187c
commit f35afe62a4
No known key found for this signature in database
GPG key ID: 686F07454D6CEFC3

View file

@ -152,8 +152,7 @@ void mlog_set_categories(const char *categories)
void mlog_set_log_level(int level)
{
const char *categories = get_default_categories(level);
el::Loggers::setCategories(categories);
MLOG_LOG("New log categories: " << categories);
mlog_set_categories(categories);
}
void mlog_set_log(const char *log)