From 081ffe994a6d39cbd332eefe6f58f8015154e4cb Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Wed, 4 Apr 2018 17:01:59 +0200 Subject: expand logging of HARD errors in DB reserve inserts --- src/exchange/taler-exchange-wirewatch.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/exchange') diff --git a/src/exchange/taler-exchange-wirewatch.c b/src/exchange/taler-exchange-wirewatch.c index e0985366d..f650690de 100644 --- a/src/exchange/taler-exchange-wirewatch.c +++ b/src/exchange/taler-exchange-wirewatch.c @@ -292,8 +292,8 @@ history_cb (void *cls, struct TALER_ReservePublicKeyP reserve_pub; GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, - "Got history callback, direction %u!\n", (unsigned int) dir); - + "Got history callback, direction %u!\n", + (unsigned int) dir); if (TALER_BANK_DIRECTION_NONE == dir) { hh = NULL; @@ -308,6 +308,7 @@ history_cb (void *cls, "End of list. Committing progress!\n"); qs = db_plugin->commit (db_plugin->cls, session); + GNUNET_break (0 <= qs); if ( (GNUNET_YES == delay) && (test_mode) ) { -- cgit v1.2.3 From f9a86ba5dc017036cf927b40431073473c9c4245 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Wed, 4 Apr 2018 17:04:51 +0200 Subject: expand logging of wirewatch shutdown --- src/exchange/taler-exchange-wirewatch.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src/exchange') diff --git a/src/exchange/taler-exchange-wirewatch.c b/src/exchange/taler-exchange-wirewatch.c index f650690de..508f8c32b 100644 --- a/src/exchange/taler-exchange-wirewatch.c +++ b/src/exchange/taler-exchange-wirewatch.c @@ -246,10 +246,10 @@ reject_cb (void *cls, rt = NULL; if (TALER_EC_NONE != ec) { - fprintf (stderr, - "Failed to wire back transfer `%s': %d\n", - rtc->wtid_s, - ec); + GNUNET_log (GNUNET_ERROR_TYPE_ERROR, + "Failed to wire back transfer `%s': %d\n", + rtc->wtid_s, + ec); GNUNET_free (rtc->wtid_s); db_plugin->rollback (db_plugin->cls, rtc->session); @@ -312,6 +312,8 @@ history_cb (void *cls, if ( (GNUNET_YES == delay) && (test_mode) ) { + GNUNET_log (GNUNET_ERROR_TYPE_INFO, + "Shutdown due to test mode!\n"); GNUNET_SCHEDULER_shutdown (); return GNUNET_OK; } -- cgit v1.2.3