-improve logging
This commit is contained in:
parent
443a0405e3
commit
287370b4cb
@ -210,6 +210,8 @@ shutdown_task (void *cls)
|
|||||||
|
|
||||||
if (NULL != hh)
|
if (NULL != hh)
|
||||||
{
|
{
|
||||||
|
GNUNET_log (GNUNET_ERROR_TYPE_INFO,
|
||||||
|
"History request cancelled on shutdown\n");
|
||||||
TALER_BANK_credit_history_cancel (hh);
|
TALER_BANK_credit_history_cancel (hh);
|
||||||
hh = NULL;
|
hh = NULL;
|
||||||
}
|
}
|
||||||
@ -1037,14 +1039,16 @@ history_cb (void *cls,
|
|||||||
const char *mode = getenv ("TALER_USE_BATCH");
|
const char *mode = getenv ("TALER_USE_BATCH");
|
||||||
char dummy;
|
char dummy;
|
||||||
|
|
||||||
if (1 != sscanf (mode,
|
if ( (NULL == mode) ||
|
||||||
"%d%c",
|
(1 != sscanf (mode,
|
||||||
&batch_mode,
|
"%d%c",
|
||||||
&dummy))
|
&batch_mode,
|
||||||
|
&dummy)) )
|
||||||
{
|
{
|
||||||
GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
|
if (NULL != mode)
|
||||||
"Bad batch mode `%s' specified\n",
|
GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
|
||||||
mode);
|
"Bad batch mode `%s' specified\n",
|
||||||
|
mode);
|
||||||
batch_mode = -1;
|
batch_mode = -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user