aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2019-07-01 11:52:55 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2019-07-01 15:17:30 +0000
commitc8709fe52f6a60dd57fd314d3bc4f27949567aa4 (patch)
treefd2652a3d7c1d96f132199494d8fdff0715e8923 /src
parentMerge pull request #5641 (diff)
downloadmonero-c8709fe52f6a60dd57fd314d3bc4f27949567aa4.tar.xz
wallet: do not print log settings when unset
Coverity 199721
Diffstat (limited to 'src')
-rw-r--r--src/wallet/wallet_args.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/wallet/wallet_args.cpp b/src/wallet/wallet_args.cpp
index a4bb342ca..9da9d109c 100644
--- a/src/wallet/wallet_args.cpp
+++ b/src/wallet/wallet_args.cpp
@@ -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;