[telepathy-gabble/master] nicer debug messages for the request pipeline

Dafydd Harries dafydd.harries at collabora.co.uk
Thu Aug 6 05:57:24 PDT 2009


---
 src/request-pipeline.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/src/request-pipeline.c b/src/request-pipeline.c
index 833a2c5..7d3c0a4 100644
--- a/src/request-pipeline.c
+++ b/src/request-pipeline.c
@@ -328,6 +328,10 @@ gabble_request_pipeline_go (GabbleRequestPipeline *pipeline)
   GabbleRequestPipelinePrivate *priv =
       GABBLE_REQUEST_PIPELINE_GET_PRIVATE (pipeline);
 
+  DEBUG ("called; %d pending items, %d items in flight",
+    g_slist_length (priv->pending_items),
+    g_slist_length (priv->items_in_flight));
+
   while (priv->pending_items &&
       (g_slist_length (priv->items_in_flight) < REQUEST_PIPELINE_SIZE))
     {
@@ -395,6 +399,7 @@ gabble_request_pipeline_enqueue (GabbleRequestPipeline *pipeline,
   priv->pending_items = g_slist_append (priv->pending_items, item);
 
   DEBUG ("enqueued new request as item %p", item);
+  DEBUG ("number of items in flight: %d", g_slist_length (priv->items_in_flight));
 
   /* If the pipeline isn't full, schedule a run. Run it delayed so that if
    * there's an error, the callback will be called after this function returns.
-- 
1.5.6.5




More information about the telepathy-commits mailing list