mirror of
https://github.com/monero-project/monero.git
synced 2024-12-27 05:59:23 -05:00
wallet: do not print log settings when unset
Coverity 199721
This commit is contained in:
parent
6335509727
commit
c8709fe52f
@ -206,7 +206,10 @@ namespace wallet_args
|
||||
if (!command_line::is_arg_defaulted(vm, arg_log_level))
|
||||
MINFO("Setting log level = " << command_line::get_arg(vm, arg_log_level));
|
||||
else
|
||||
MINFO("Setting log levels = " << getenv("MONERO_LOGS"));
|
||||
{
|
||||
const char *logs = getenv("MONERO_LOGS");
|
||||
MINFO("Setting log levels = " << (logs ? logs : "<default>"));
|
||||
}
|
||||
MINFO(wallet_args::tr("Logging to: ") << log_path);
|
||||
|
||||
Print(print) << boost::format(wallet_args::tr("Logging to %s")) % log_path;
|
||||
|
Loading…
Reference in New Issue
Block a user