[telepathy-gabble/master] remove some debug messages flooding output when using a stream tube

Guillaume Desmottes guillaume.desmottes at collabora.co.uk
Mon Sep 21 13:14:15 PDT 2009


---
 src/bytestream-socks5.c |   12 ------------
 src/tube-stream.c       |   14 --------------
 2 files changed, 0 insertions(+), 26 deletions(-)

diff --git a/src/bytestream-socks5.c b/src/bytestream-socks5.c
index f4c452b..f2104c3 100644
--- a/src/bytestream-socks5.c
+++ b/src/bytestream-socks5.c
@@ -595,7 +595,6 @@ transport_buffer_empty_cb (GibberTransport *transport,
     }
   else if (priv->write_blocked)
     {
-      DEBUG ("buffer is empty, unblock write to the bytestream");
       change_write_blocked_state (self, FALSE);
     }
 }
@@ -1188,8 +1187,6 @@ transport_handler (GibberTransport *transport,
       GABBLE_BYTESTREAM_SOCKS5_GET_PRIVATE (self);
   gsize used_bytes;
 
-  DEBUG ("got %" G_GSIZE_FORMAT " bytes from sock5 transport", data->length);
-
   g_assert (priv->read_buffer != NULL);
   g_string_append_len (priv->read_buffer, (const gchar *) data->data,
       data->length);
@@ -1358,17 +1355,11 @@ gabble_bytestream_socks5_send (GabbleBytestreamIface *iface,
       return FALSE;
     }
 
-  if (priv->write_blocked)
-    {
-      DEBUG ("sending data while the bytestream was blocked");
-    }
-
   /* if something goes wrong during the sending, the bytestream could be
    * closed and so disposed by the bytestream factory. Ref it to keep it
    * artifically alive if such case happen. */
   g_object_ref (self);
 
-  DEBUG ("send %u bytes through bytestream", len);
   if (!write_to_transport (self, str, len, &error))
     {
       DEBUG ("sending failed: %s", error->message);
@@ -1393,7 +1384,6 @@ gabble_bytestream_socks5_send (GabbleBytestreamIface *iface,
   if (!gibber_transport_buffer_is_empty (priv->transport))
     {
       /* We >don't want to send more data while the buffer isn't empty */
-      DEBUG ("buffer isn't empty. Block write to the bytestream");
       change_write_blocked_state (self, TRUE);
     }
 
@@ -1933,8 +1923,6 @@ gabble_bytestream_socks5_block_reading (GabbleBytestreamIface *iface,
 
   priv->read_blocked = block;
 
-  DEBUG ("%s the transport bytestream", block ? "block": "unblock");
-
   if (priv->transport != NULL)
     gibber_transport_block_receiving (priv->transport, block);
 }
diff --git a/src/tube-stream.c b/src/tube-stream.c
index 0d7e500..9aedd5f 100644
--- a/src/tube-stream.c
+++ b/src/tube-stream.c
@@ -247,8 +247,6 @@ transport_handler (GibberTransport *transport,
       return;
     }
 
-  DEBUG ("read %" G_GSIZE_FORMAT " bytes from socket", data->length);
-
   gabble_bytestream_iface_send (bytestream, data->length,
       (const gchar *) data->data);
 }
@@ -343,7 +341,6 @@ transport_buffer_empty_cb (GibberTransport *transport,
     }
 
   /* Buffer is empty so we can unblock the buffer if it was blocked */
-  DEBUG ("tube buffer is empty. Unblock the bytestream");
   gabble_bytestream_iface_block_reading (bytestream, FALSE);
 }
 
@@ -375,15 +372,6 @@ bytestream_write_blocked_cb (GabbleBytestreamIface *bytestream,
       bytestream);
   g_assert (transport != NULL);
 
-  if (blocked)
-    {
-      DEBUG ("bytestream blocked, stop to read data from the tube socket");
-    }
-  else
-    {
-      DEBUG ("bytestream unblocked, restart to read data from the tube socket");
-    }
-
   gibber_transport_block_receiving (transport, blocked);
 }
 
@@ -1774,8 +1762,6 @@ data_received_cb (GabbleBytestreamIface *bytestream,
   GibberTransport *transport;
   GError *error = NULL;
 
-  DEBUG ("received %" G_GSIZE_FORMAT " bytes from bytestream", data->len);
-
   transport = g_hash_table_lookup (priv->bytestream_to_transport, bytestream);
   g_assert (transport != NULL);
 
-- 
1.5.6.5




More information about the telepathy-commits mailing list