[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-exchange] branch master updated: -improve logging
From: |
gnunet |
Subject: |
[taler-exchange] branch master updated: -improve logging |
Date: |
Tue, 20 Dec 2022 13:26:41 +0100 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to branch master
in repository exchange.
The following commit(s) were added to refs/heads/master by this push:
new 287370b4 -improve logging
287370b4 is described below
commit 287370b4cbcd3062da83bed9b4b6935532899992
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Tue Dec 20 13:26:38 2022 +0100
-improve logging
---
src/exchange/taler-exchange-wirewatch.c | 18 +++++++++++-------
1 file changed, 11 insertions(+), 7 deletions(-)
diff --git a/src/exchange/taler-exchange-wirewatch.c
b/src/exchange/taler-exchange-wirewatch.c
index ce403d64..dcc2672c 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;
}
}
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.