diff options
| author | Riccardo Spagni <ric@spagni.net> | 2018-05-21 20:56:20 +0200 |
|---|---|---|
| committer | Riccardo Spagni <ric@spagni.net> | 2018-05-21 20:56:20 +0200 |
| commit | d6cefbd1b8ad12c7e558a2c56abc788f2d8f8f00 (patch) | |
| tree | e4404c469cbfdacbbc64bf74c6a6541fa8d9f08e /src/wallet/api/wallet.cpp | |
| parent | 2a1e23e0873d859b9359aa17cff591b86993bd8f (diff) | |
| parent | b13bddc3c9eac8775f89d220fed9351592e6194a (diff) | |
| download | monzero-core-d6cefbd1b8ad12c7e558a2c56abc788f2d8f8f00.tar.gz monzero-core-d6cefbd1b8ad12c7e558a2c56abc788f2d8f8f00.tar.xz monzero-core-d6cefbd1b8ad12c7e558a2c56abc788f2d8f8f00.zip | |
Merge pull request #3745
b13bddc3 Wallet API: allow log path to be non-default & console output to be configurable (stoffu)
Diffstat (limited to 'src/wallet/api/wallet.cpp')
| -rw-r--r-- | src/wallet/api/wallet.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wallet/api/wallet.cpp b/src/wallet/api/wallet.cpp index b78a471b9..367011eaa 100644 --- a/src/wallet/api/wallet.cpp +++ b/src/wallet/api/wallet.cpp @@ -305,14 +305,14 @@ uint64_t Wallet::maximumAllowedAmount() return std::numeric_limits<uint64_t>::max(); } -void Wallet::init(const char *argv0, const char *default_log_base_name) { +void Wallet::init(const char *argv0, const char *default_log_base_name, const std::string &log_path, bool console) { #ifdef WIN32 // Activate UTF-8 support for Boost filesystem classes on Windows std::locale::global(boost::locale::generator().generate("")); boost::filesystem::path::imbue(std::locale()); #endif epee::string_tools::set_module_name_and_folder(argv0); - mlog_configure(mlog_get_default_log_path(default_log_base_name), true); + mlog_configure(log_path.empty() ? mlog_get_default_log_path(default_log_base_name) : log_path.c_str(), console); } void Wallet::debug(const std::string &category, const std::string &str) { |
