diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2018-06-06 10:12:45 +0100 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2018-06-06 10:15:13 +0100 |
commit | 62c8c07c47b2e30a466864bc483ff8a5e3665b81 (patch) | |
tree | c56947609899f394a18b210501d15643c7dc505b /src | |
parent | Merge pull request #3866 (diff) | |
download | monero-62c8c07c47b2e30a466864bc483ff8a5e3665b81.tar.xz |
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.
Diffstat (limited to 'src')
-rw-r--r-- | src/wallet/wallet_args.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/wallet/wallet_args.cpp b/src/wallet/wallet_args.cpp index 6311e7700..50a5540d4 100644 --- a/src/wallet/wallet_args.cpp +++ b/src/wallet/wallet_args.cpp @@ -185,6 +185,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; |