improve logging
This commit is contained in:
parent
bda228232f
commit
53d5343103
@ -1223,8 +1223,6 @@ run_reserve_closures (void *cls)
|
|||||||
tc = GNUNET_SCHEDULER_get_task_context ();
|
tc = GNUNET_SCHEDULER_get_task_context ();
|
||||||
if (0 != (tc->reason & GNUNET_SCHEDULER_REASON_SHUTDOWN))
|
if (0 != (tc->reason & GNUNET_SCHEDULER_REASON_SHUTDOWN))
|
||||||
return;
|
return;
|
||||||
GNUNET_log (GNUNET_ERROR_TYPE_INFO,
|
|
||||||
"Checking for reserves to close\n");
|
|
||||||
if (NULL == (session = db_plugin->get_session (db_plugin->cls)))
|
if (NULL == (session = db_plugin->get_session (db_plugin->cls)))
|
||||||
{
|
{
|
||||||
GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
|
GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
|
||||||
@ -1250,6 +1248,9 @@ run_reserve_closures (void *cls)
|
|||||||
erc.async_cont = GNUNET_NO;
|
erc.async_cont = GNUNET_NO;
|
||||||
now = GNUNET_TIME_absolute_get ();
|
now = GNUNET_TIME_absolute_get ();
|
||||||
(void) GNUNET_TIME_round_abs (&now);
|
(void) GNUNET_TIME_round_abs (&now);
|
||||||
|
GNUNET_log (GNUNET_ERROR_TYPE_INFO,
|
||||||
|
"Checking for reserves to close by date %s\n",
|
||||||
|
GNUNET_STRINGS_absolute_time_to_string (now));
|
||||||
qs = db_plugin->get_expired_reserves (db_plugin->cls,
|
qs = db_plugin->get_expired_reserves (db_plugin->cls,
|
||||||
session,
|
session,
|
||||||
now,
|
now,
|
||||||
|
Loading…
Reference in New Issue
Block a user