aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2017-01-20 20:58:39 -0500
committerRiccardo Spagni <ric@spagni.net>2017-01-20 20:58:39 -0500
commitd5fbba45e8ebae3fef6596b40827eb555101c7c9 (patch)
tree52961ad748a2068e7df1bdd8be8c4743fa65b8a2
parentMerge pull request #1587 (diff)
parentwallet2_api: add API to set log categories (diff)
downloadmonero-d5fbba45e8ebae3fef6596b40827eb555101c7c9.tar.xz
Merge pull request #1589
87c658f8 wallet2_api: add API to set log categories (moneromooo-monero)
-rw-r--r--src/wallet/api/wallet_manager.cpp5
-rw-r--r--src/wallet/wallet2_api.h1
2 files changed, 6 insertions, 0 deletions
diff --git a/src/wallet/api/wallet_manager.cpp b/src/wallet/api/wallet_manager.cpp
index 12bce0285..904338a72 100644
--- a/src/wallet/api/wallet_manager.cpp
+++ b/src/wallet/api/wallet_manager.cpp
@@ -448,6 +448,11 @@ void WalletManagerFactory::setLogLevel(int level)
mlog_set_log_level(level);
}
+void WalletManagerFactory::setLogCategories(const std::string &categories)
+{
+ mlog_set_categories(categories.c_str());
+}
+
}
diff --git a/src/wallet/wallet2_api.h b/src/wallet/wallet2_api.h
index 5a13205c5..78caddc0b 100644
--- a/src/wallet/wallet2_api.h
+++ b/src/wallet/wallet2_api.h
@@ -708,6 +708,7 @@ struct WalletManagerFactory
static WalletManager * getWalletManager();
static void setLogLevel(int level);
+ static void setLogCategories(const std::string &categories);
};