mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-12-24 22:27:46 +00:00
wallet: do not print log settings when unset
Coverity 199721
This commit is contained in:
parent
6335509727
commit
c8709fe52f
1 changed files with 4 additions and 1 deletions
|
@ -206,7 +206,10 @@ namespace wallet_args
|
||||||
if (!command_line::is_arg_defaulted(vm, arg_log_level))
|
if (!command_line::is_arg_defaulted(vm, arg_log_level))
|
||||||
MINFO("Setting log level = " << command_line::get_arg(vm, arg_log_level));
|
MINFO("Setting log level = " << command_line::get_arg(vm, arg_log_level));
|
||||||
else
|
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);
|
MINFO(wallet_args::tr("Logging to: ") << log_path);
|
||||||
|
|
||||||
Print(print) << boost::format(wallet_args::tr("Logging to %s")) % log_path;
|
Print(print) << boost::format(wallet_args::tr("Logging to %s")) % log_path;
|
||||||
|
|
Loading…
Reference in a new issue