diff options
author | Christian Grothoff <christian@grothoff.org> | 2018-04-15 12:20:00 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2018-04-15 12:20:00 +0200 |
commit | 202827ebdaafdf33b78c202bcbb6917dd65dd1c1 (patch) | |
tree | b5689b28c58e1698dff0f296dbe78ec432430512 /src/exchange | |
parent | aea82d3dcde94b68a70a65be8736cf7ad437b0c7 (diff) | |
parent | 1b3bf1a00126baffd016676ad1d668637b8b2efe (diff) | |
download | exchange-202827ebdaafdf33b78c202bcbb6917dd65dd1c1.tar.gz exchange-202827ebdaafdf33b78c202bcbb6917dd65dd1c1.tar.bz2 exchange-202827ebdaafdf33b78c202bcbb6917dd65dd1c1.zip |
merging Florian's changes with my wire changes
Diffstat (limited to 'src/exchange')
-rw-r--r-- | src/exchange/taler-exchange-wirewatch.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/exchange/taler-exchange-wirewatch.c b/src/exchange/taler-exchange-wirewatch.c index 67fab85ca..a48634eb9 100644 --- a/src/exchange/taler-exchange-wirewatch.c +++ b/src/exchange/taler-exchange-wirewatch.c @@ -328,10 +328,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); @@ -389,10 +389,13 @@ 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) && (NULL == wa_pos->next) ) { + GNUNET_log (GNUNET_ERROR_TYPE_INFO, + "Shutdown due to test mode!\n"); GNUNET_SCHEDULER_shutdown (); return GNUNET_OK; } |