From 173c848fe93dce1ca59edd408a376334ef4047bf Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Mon, 29 May 2017 18:27:15 +0200 Subject: minor changes to get #3464 to work, finally --- src/exchange/taler-exchange-wirewatch.c | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'src/exchange/taler-exchange-wirewatch.c') diff --git a/src/exchange/taler-exchange-wirewatch.c b/src/exchange/taler-exchange-wirewatch.c index 195aa47d9..aee3083f2 100644 --- a/src/exchange/taler-exchange-wirewatch.c +++ b/src/exchange/taler-exchange-wirewatch.c @@ -142,6 +142,12 @@ shutdown_task (void *cls) static int exchange_serve_process_config () { + if (NULL == type) + { + fprintf (stderr, + "Option `-t' to specify wire plugin is mandatory.\n"); + return GNUNET_SYSERR; + } if (GNUNET_OK != GNUNET_CONFIGURATION_get_value_string (cfg, "taler", @@ -169,7 +175,6 @@ exchange_serve_process_config () "Failed to initialize DB subsystem\n"); return GNUNET_SYSERR; } - if (NULL == (wire_plugin = TALER_WIRE_plugin_load (cfg, type))) @@ -219,6 +224,8 @@ history_cb (void *cls, { hh = NULL; + GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, + "End of list. Committing progress!\n"); ret = db_plugin->commit (db_plugin->cls, session); if (GNUNET_OK == ret) @@ -236,6 +243,10 @@ history_cb (void *cls, NULL); return GNUNET_OK; /* will be ignored anyway */ } + GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, + "Adding wire transfer over %s with subject `%s'\n", + TALER_amount2s (&details->amount), + TALER_B2S (&details->reserve_pub)); ret = db_plugin->reserves_in_insert (db_plugin->cls, session, &details->reserve_pub, -- cgit v1.2.3