summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2022-04-30 17:34:55 +0200
committerChristian Grothoff <christian@grothoff.org>2022-04-30 17:36:12 +0200
commitdee7a241cc51d04702acab1bc2c28c43d809d729 (patch)
treeef909d19411ca6e1f6b06ec051a4f825e3bc9d02 /src
parent8a0b107b6fdcf123b0382c193b9b7c11d7badb83 (diff)
-nicer logging
Diffstat (limited to 'src')
-rw-r--r--src/pq/pq_event.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/pq/pq_event.c b/src/pq/pq_event.c
index 98a28c317..aff52dd5c 100644
--- a/src/pq/pq_event.c
+++ b/src/pq/pq_event.c
@@ -189,6 +189,7 @@ static void
event_do_poll (struct GNUNET_PQ_Context *db)
{
PGnotify *n;
+ unsigned int cnt = 0;
GNUNET_log (GNUNET_ERROR_TYPE_INFO,
"PG poll job active\n");
@@ -210,6 +211,7 @@ event_do_poll (struct GNUNET_PQ_Context *db)
.extra = NULL
};
+ cnt++;
if ('X' != toupper ((int) n->relname[0]))
{
GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
@@ -254,6 +256,9 @@ event_do_poll (struct GNUNET_PQ_Context *db)
GNUNET_free (ctx.extra);
PQfreemem (n);
}
+ GNUNET_log (GNUNET_ERROR_TYPE_INFO,
+ "PG poll job finishes after %u events\n",
+ cnt);
}