aboutsummaryrefslogtreecommitdiff
path: root/src/benchmark/taler-exchange-benchmark.c
diff options
context:
space:
mode:
authorMarcello Stanisci <stanisci.m@gmail.com>2018-07-25 13:36:33 +0200
committerMarcello Stanisci <stanisci.m@gmail.com>2018-07-25 13:36:33 +0200
commit3af3a9fdc374bbbb8f6f4e243ebf4bc2d36e3138 (patch)
tree9f674d13858418b3acbad52313bd4da48a15e327 /src/benchmark/taler-exchange-benchmark.c
parentde925a355627dac7dbf4232790a58cddf36b2021 (diff)
Give default loglev at benchmark.
Diffstat (limited to 'src/benchmark/taler-exchange-benchmark.c')
-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");