diff options
author | Jaquee <jaquee.monero@gmail.com> | 2017-02-05 20:12:01 +0100 |
---|---|---|
committer | Jaquee <jaquee.monero@gmail.com> | 2017-02-05 20:12:01 +0100 |
commit | 7549116ec32bc05ff0729ba09a6ac67d3bee1913 (patch) | |
tree | 96d40ad534a028402f40db486d92e8893de014c3 /src | |
parent | Merge pull request #1655 (diff) | |
download | monero-7549116ec32bc05ff0729ba09a6ac67d3bee1913.tar.xz |
Wallet API: Easylogger wrapper for gui
Diffstat (limited to 'src')
-rw-r--r-- | src/wallet/api/wallet.cpp | 6 | ||||
-rw-r--r-- | src/wallet/wallet2_api.h | 2 |
2 files changed, 8 insertions, 0 deletions
diff --git a/src/wallet/api/wallet.cpp b/src/wallet/api/wallet.cpp index 830f98909..2524107c4 100644 --- a/src/wallet/api/wallet.cpp +++ b/src/wallet/api/wallet.cpp @@ -44,6 +44,9 @@ using namespace std; using namespace cryptonote; +#undef MONERO_DEFAULT_LOG_CATEGORY +#define MONERO_DEFAULT_LOG_CATEGORY "WalletAPI" + namespace Monero { namespace { @@ -255,6 +258,9 @@ uint64_t Wallet::maximumAllowedAmount() return std::numeric_limits<uint64_t>::max(); } +void Wallet::debug(const std::string &str) { + MDEBUG(str); +} ///////////////////////// WalletImpl implementation //////////////////////// WalletImpl::WalletImpl(bool testnet) diff --git a/src/wallet/wallet2_api.h b/src/wallet/wallet2_api.h index 883da7da2..daa3deeee 100644 --- a/src/wallet/wallet2_api.h +++ b/src/wallet/wallet2_api.h @@ -428,6 +428,8 @@ struct Wallet static bool keyValid(const std::string &secret_key_string, const std::string &address_string, bool isViewKey, bool testnet, std::string &error); static std::string paymentIdFromAddress(const std::string &str, bool testnet); static uint64_t maximumAllowedAmount(); + // Easylogger wrapper + static void debug(const std::string &str); /** * @brief StartRefresh - Start/resume refresh thread (refresh every 10 seconds) |