aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorluigi1111 <luigi1111w@gmail.com>2019-08-19 17:17:11 -0500
committerluigi1111 <luigi1111w@gmail.com>2019-08-19 17:17:11 -0500
commit2da11baeccb839f1a7170bfbbcdfc4347afb3e7c (patch)
tree057f3c1e7c9edcf684766d769f4cb264b0e33fc4 /src
parentMerge pull request #5706 (diff)
parentunit_tests: check return values on test data parsing (diff)
downloadmonero-2da11baeccb839f1a7170bfbbcdfc4347afb3e7c.tar.xz
Merge pull request #5718
c8709fe wallet: do not print log settings when unset (moneromooo-monero) 7b18e83 unit_tests: check return values on test data parsing (moneromooo-monero)
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;