summaryrefslogtreecommitdiff
path: root/src/auditor/taler-auditor-sign.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2019-12-24 20:21:54 +0100
committerChristian Grothoff <christian@grothoff.org>2019-12-24 20:21:54 +0100
commitdf0237ab94d18806b9cf57c7d4591940bb8a350e (patch)
tree32758b8a3f85b6717e28b9ecec4939c32c36d441 /src/auditor/taler-auditor-sign.c
parent75aec331fb82dc5c49eefc1352df299f4d9e6771 (diff)
downloadexchange-df0237ab94d18806b9cf57c7d4591940bb8a350e.tar.gz
exchange-df0237ab94d18806b9cf57c7d4591940bb8a350e.tar.bz2
exchange-df0237ab94d18806b9cf57c7d4591940bb8a350e.zip
support -l/-L options, improve logging
Diffstat (limited to 'src/auditor/taler-auditor-sign.c')
-rw-r--r--src/auditor/taler-auditor-sign.c18
1 files changed, 14 insertions, 4 deletions
diff --git a/src/auditor/taler-auditor-sign.c b/src/auditor/taler-auditor-sign.c
index f35b5de5..9c39b66f 100644
--- a/src/auditor/taler-auditor-sign.c
+++ b/src/auditor/taler-auditor-sign.c
@@ -148,6 +148,8 @@ main (int argc,
char *const *argv)
{
char *cfgfile = NULL;
+ char *loglev = NULL;
+ char *logfile = NULL;
const struct GNUNET_GETOPT_CommandLineOption options[] = {
GNUNET_GETOPT_option_filename ('a',
"auditor-key",
@@ -156,6 +158,8 @@ main (int argc,
&auditor_key_file),
GNUNET_GETOPT_option_cfgfile (&cfgfile),
GNUNET_GETOPT_option_help ("Sign denomination keys of an exchange"),
+ GNUNET_GETOPT_option_loglevel (&loglev),
+ GNUNET_GETOPT_option_logfile (&logfile),
GNUNET_GETOPT_option_mandatory
(GNUNET_GETOPT_option_base32_auto ('m',
"exchange-key",
@@ -191,14 +195,14 @@ main (int argc,
struct TALER_ExchangeKeyValidityPS kv;
off_t in_size;
- GNUNET_assert (GNUNET_OK ==
- GNUNET_log_setup ("taler-auditor-sign",
- "WARNING",
- NULL));
if (GNUNET_GETOPT_run ("taler-auditor-sign",
options,
argc, argv) <= 0)
return 1;
+ GNUNET_assert (GNUNET_OK ==
+ GNUNET_log_setup ("taler-auditor-sign",
+ loglev,
+ logfile));
if (NULL == cfgfile)
cfgfile = GNUNET_strdup (GNUNET_OS_project_data_get ()->user_config_file);
cfg = GNUNET_CONFIGURATION_create ();
@@ -377,6 +381,9 @@ main (int argc,
return 3;
}
+ GNUNET_log (GNUNET_ERROR_TYPE_INFO,
+ "Taler auditor importing keys for exchange master public key %s\n",
+ TALER_B2S (&master_public_key));
/* Update DB */
{
@@ -398,6 +405,9 @@ main (int argc,
{
const struct TALER_DenominationKeyValidityPS *dk = &dks[i];
+ GNUNET_log (GNUNET_ERROR_TYPE_INFO,
+ "Adding denomination key %s to auditor database\n",
+ TALER_B2S (&dk->denom_hash));
qs = adb->insert_denomination_info (adb->cls,
session,
dk);