Merge pull request #1747

26bd7aac wallet_api: fix logging init via api (moneromooo-monero)
This commit is contained in:
Riccardo Spagni
2017-02-21 11:28:58 +02:00
3 changed files with 6 additions and 1 deletions

View File

@@ -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);
}