diff options
author | Riccardo Spagni <ric@spagni.net> | 2017-03-21 14:09:42 +0200 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2017-03-21 14:09:42 +0200 |
commit | 70e71a18450aa8e69971ad29793b0b409ffcef22 (patch) | |
tree | 76df97f69de09855528cc7f06c7f5ba984883622 /src | |
parent | Merge pull request #1903 (diff) | |
parent | wallet: fix set_log not handling 0,xxx style settings (diff) | |
download | monero-70e71a18450aa8e69971ad29793b0b409ffcef22.tar.xz |
Merge pull request #1904
995969b1 wallet: fix set_log not handling 0,xxx style settings (moneromooo-monero)
Diffstat (limited to 'src')
-rw-r--r-- | src/simplewallet/simplewallet.cpp | 16 | ||||
-rw-r--r-- | src/wallet/api/wallet_manager.cpp | 2 |
2 files changed, 2 insertions, 16 deletions
diff --git a/src/simplewallet/simplewallet.cpp b/src/simplewallet/simplewallet.cpp index 8fcefc06b..134841a25 100644 --- a/src/simplewallet/simplewallet.cpp +++ b/src/simplewallet/simplewallet.cpp @@ -851,21 +851,7 @@ bool simple_wallet::set_log(const std::vector<std::string> &args) fail_msg_writer() << tr("usage: set_log <log_level_number_0-4> | <categories>"); return true; } - uint16_t l = 0; - if(epee::string_tools::get_xtype_from_string(l, args[0])) - { - if(4 < l) - { - fail_msg_writer() << tr("wrong number range, use: set_log <log_level_number_0-4>"); - return true; - } - - mlog_set_log_level(l); - } - else - { - mlog_set_categories(args.front().c_str()); - } + mlog_set_log(args[0].c_str()); return true; } //---------------------------------------------------------------------------------------------------- diff --git a/src/wallet/api/wallet_manager.cpp b/src/wallet/api/wallet_manager.cpp index ea2a66275..8e86c87b3 100644 --- a/src/wallet/api/wallet_manager.cpp +++ b/src/wallet/api/wallet_manager.cpp @@ -494,7 +494,7 @@ void WalletManagerFactory::setLogLevel(int level) void WalletManagerFactory::setLogCategories(const std::string &categories) { - mlog_set_categories(categories.c_str()); + mlog_set_log(categories.c_str()); } |