diff options
author | Riccardo Spagni <ric@spagni.net> | 2017-11-15 00:47:28 +0200 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2017-11-15 00:47:28 +0200 |
commit | 0ddf3b6c758df71eb3711dab826b0cd2f34dfc29 (patch) | |
tree | cbb786d5b6b30ff759d4d9af72e68c8f32a1205b /src/wallet/wallet_rpc_server.cpp | |
parent | Merge pull request #2813 (diff) | |
parent | More missed readline dependencies thru scoped_message_writer (diff) | |
download | monero-0ddf3b6c758df71eb3711dab826b0cd2f34dfc29.tar.xz |
Merge pull request #2814
987eb662 More missed readline dependencies thru scoped_message_writer (Howard Chu)
Diffstat (limited to '')
-rw-r--r-- | src/wallet/wallet_rpc_server.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/wallet/wallet_rpc_server.cpp b/src/wallet/wallet_rpc_server.cpp index 173cc7bbe..90acb44d8 100644 --- a/src/wallet/wallet_rpc_server.cpp +++ b/src/wallet/wallet_rpc_server.cpp @@ -38,7 +38,6 @@ using namespace epee; #include "wallet/wallet_args.h" #include "common/command_line.h" #include "common/i18n.h" -#include "common/scoped_message_writer.h" #include "cryptonote_basic/cryptonote_format_utils.h" #include "cryptonote_basic/account.h" #include "wallet_rpc_server_commands_defs.h" @@ -1982,7 +1981,7 @@ int main(int argc, char** argv) { "monero-wallet-rpc [--wallet-file=<file>|--generate-from-json=<file>|--wallet-dir=<directory>] [--rpc-bind-port=<port>]", desc_params, po::positional_options_description(), - [](const std::string &s, bool emphasis){ tools::scoped_message_writer(emphasis ? epee::console_color_white : epee::console_color_default, true) << s; }, + [](const std::string &s, bool emphasis){ epee::set_console_color(emphasis ? epee::console_color_white : epee::console_color_default, true); std::cout << s << std::endl; if (emphasis) epee::reset_console_color(); }, "monero-wallet-rpc.log", true ); |