Give default loglev at benchmark.

This commit is contained in:
Marcello Stanisci 2018-07-25 13:36:33 +02:00
parent de925a3556
commit 3af3a9fdc3
No known key found for this signature in database
GPG Key ID: 8D526861953F4C0F

View File

@ -321,12 +321,6 @@ main (int argc,
char *const *argv) char *const *argv)
{ {
struct GNUNET_CONFIGURATION_Handle *cfg; struct GNUNET_CONFIGURATION_Handle *cfg;
loglev = NULL;
GNUNET_log_setup ("taler-exchange-benchmark",
loglev,
logfile);
struct GNUNET_GETOPT_CommandLineOption options[] = { struct GNUNET_GETOPT_CommandLineOption options[] = {
GNUNET_GETOPT_option_cfgfile GNUNET_GETOPT_option_cfgfile
@ -376,6 +370,10 @@ main (int argc,
return BAD_CLI_ARG; return BAD_CLI_ARG;
} }
GNUNET_log_setup ("taler-exchange-benchmark",
NULL == loglev ? "INFO" : loglev,
logfile);
if (NULL == cfg_filename) if (NULL == cfg_filename)
{ {
TALER_LOG_ERROR ("-c option is mandatory\n"); TALER_LOG_ERROR ("-c option is mandatory\n");