From 3af3a9fdc374bbbb8f6f4e243ebf4bc2d36e3138 Mon Sep 17 00:00:00 2001 From: Marcello Stanisci Date: Wed, 25 Jul 2018 13:36:33 +0200 Subject: [PATCH] Give default loglev at benchmark. --- src/benchmark/taler-exchange-benchmark.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/benchmark/taler-exchange-benchmark.c b/src/benchmark/taler-exchange-benchmark.c index abe57b109..bfeb6f72f 100644 --- a/src/benchmark/taler-exchange-benchmark.c +++ b/src/benchmark/taler-exchange-benchmark.c @@ -321,12 +321,6 @@ main (int argc, char *const *argv) { struct GNUNET_CONFIGURATION_Handle *cfg; - - loglev = NULL; - GNUNET_log_setup ("taler-exchange-benchmark", - loglev, - logfile); - struct GNUNET_GETOPT_CommandLineOption options[] = { GNUNET_GETOPT_option_cfgfile @@ -376,6 +370,10 @@ main (int argc, return BAD_CLI_ARG; } + GNUNET_log_setup ("taler-exchange-benchmark", + NULL == loglev ? "INFO" : loglev, + logfile); + if (NULL == cfg_filename) { TALER_LOG_ERROR ("-c option is mandatory\n");