aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/benchmark/taler-exchange-benchmark.c10
1 files 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");