aboutsummaryrefslogtreecommitdiff
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
parent8a0b107b6fdcf123b0382c193b9b7c11d7badb83 (diff)
downloadgnunet-dee7a241cc51d04702acab1bc2c28c43d809d729.tar.gz
gnunet-dee7a241cc51d04702acab1bc2c28c43d809d729.zip
-nicer logging
-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
189event_do_poll (struct GNUNET_PQ_Context *db) 189event_do_poll (struct GNUNET_PQ_Context *db)
190{ 190{
191 PGnotify *n; 191 PGnotify *n;
192 unsigned int cnt = 0;
192 193
193 GNUNET_log (GNUNET_ERROR_TYPE_INFO, 194 GNUNET_log (GNUNET_ERROR_TYPE_INFO,
194 "PG poll job active\n"); 195 "PG poll job active\n");
@@ -210,6 +211,7 @@ event_do_poll (struct GNUNET_PQ_Context *db)
210 .extra = NULL 211 .extra = NULL
211 }; 212 };
212 213
214 cnt++;
213 if ('X' != toupper ((int) n->relname[0])) 215 if ('X' != toupper ((int) n->relname[0]))
214 { 216 {
215 GNUNET_log (GNUNET_ERROR_TYPE_WARNING, 217 GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
@@ -254,6 +256,9 @@ event_do_poll (struct GNUNET_PQ_Context *db)
254 GNUNET_free (ctx.extra); 256 GNUNET_free (ctx.extra);
255 PQfreemem (n); 257 PQfreemem (n);
256 } 258 }
259 GNUNET_log (GNUNET_ERROR_TYPE_INFO,
260 "PG poll job finishes after %u events\n",
261 cnt);
257} 262}
258 263
259 264