diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2017-02-18 20:44:23 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2017-02-18 20:44:23 +0000 |
commit | 26bd7aac033792a280d115a841757fb215c66fcc (patch) | |
tree | 8d9581b5ecdb00117b285c07675b4b7d02921538 /src/wallet/api/wallet.cpp | |
parent | Merge pull request #1719 (diff) | |
download | monero-26bd7aac033792a280d115a841757fb215c66fcc.tar.xz |
wallet_api: fix logging init via api
Diffstat (limited to 'src/wallet/api/wallet.cpp')
-rw-r--r-- | src/wallet/api/wallet.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/wallet/api/wallet.cpp b/src/wallet/api/wallet.cpp index c46de6b06..25463aa3c 100644 --- a/src/wallet/api/wallet.cpp +++ b/src/wallet/api/wallet.cpp @@ -258,6 +258,11 @@ uint64_t Wallet::maximumAllowedAmount() return std::numeric_limits<uint64_t>::max(); } +void Wallet::init(const char *argv0, const char *default_log_base_name) { + epee::string_tools::set_module_name_and_folder(argv0); + mlog_configure(mlog_get_default_log_path(default_log_base_name), true); +} + void Wallet::debug(const std::string &str) { MDEBUG(str); } |