diff options
author | Christian Grothoff <christian@grothoff.org> | 2022-12-20 13:26:38 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2022-12-20 13:26:38 +0100 |
commit | 287370b4cbcd3062da83bed9b4b6935532899992 (patch) | |
tree | f04dceababe2dffe2fa96c8d11d489d4db45ee68 | |
parent | 443a0405e306c3e997979cc7ebdce9e5063d2d10 (diff) |
-improve logging
-rw-r--r-- | src/exchange/taler-exchange-wirewatch.c | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/src/exchange/taler-exchange-wirewatch.c b/src/exchange/taler-exchange-wirewatch.c index ce403d64a..dcc2672cc 100644 --- a/src/exchange/taler-exchange-wirewatch.c +++ b/src/exchange/taler-exchange-wirewatch.c @@ -210,6 +210,8 @@ shutdown_task (void *cls) if (NULL != hh) { + GNUNET_log (GNUNET_ERROR_TYPE_INFO, + "History request cancelled on shutdown\n"); TALER_BANK_credit_history_cancel (hh); hh = NULL; } @@ -1037,14 +1039,16 @@ history_cb (void *cls, const char *mode = getenv ("TALER_USE_BATCH"); char dummy; - if (1 != sscanf (mode, - "%d%c", - &batch_mode, - &dummy)) + if ( (NULL == mode) || + (1 != sscanf (mode, + "%d%c", + &batch_mode, + &dummy)) ) { - GNUNET_log (GNUNET_ERROR_TYPE_ERROR, - "Bad batch mode `%s' specified\n", - mode); + if (NULL != mode) + GNUNET_log (GNUNET_ERROR_TYPE_ERROR, + "Bad batch mode `%s' specified\n", + mode); batch_mode = -1; } } |