From 7ce841cc2ffa03ee2793c8c1b45e7da1c18d9f8e Mon Sep 17 00:00:00 2001 From: moneromooo-monero Date: Wed, 6 Jun 2018 10:12:45 +0100 Subject: [PATCH] wallet: do not log by default if we're not asked to log to console This means monero-wallet-rpc still does, but the user level program does not. --- src/wallet/wallet_args.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/wallet/wallet_args.cpp b/src/wallet/wallet_args.cpp index a6ff63dd3..66a0f594b 100644 --- a/src/wallet/wallet_args.cpp +++ b/src/wallet/wallet_args.cpp @@ -179,6 +179,10 @@ namespace wallet_args { mlog_set_log(command_line::get_arg(vm, arg_log_level).c_str()); } + else if (!log_to_console) + { + mlog_set_categories(""); + } if (notice) Print(print) << notice << ENDL;