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.
This commit is contained in:
moneromooo-monero 2018-06-06 10:12:45 +01:00
parent 4e2b279a94
commit 7ce841cc2f
No known key found for this signature in database
GPG Key ID: 686F07454D6CEFC3

View File

@ -179,6 +179,10 @@ namespace wallet_args
{ {
mlog_set_log(command_line::get_arg(vm, arg_log_level).c_str()); mlog_set_log(command_line::get_arg(vm, arg_log_level).c_str());
} }
else if (!log_to_console)
{
mlog_set_categories("");
}
if (notice) if (notice)
Print(print) << notice << ENDL; Print(print) << notice << ENDL;