logm
authorChristian Grothoff <christian@grothoff.org>
Mon, 31 May 2010 09:46:49 +0000 (09:46 +0000)
committerChristian Grothoff <christian@grothoff.org>
Mon, 31 May 2010 09:46:49 +0000 (09:46 +0000)
src/util/client.c

index 24740caabc1babe85ced703432683331d579aaf3..f964b7322177ced5a5e531c7bbe2913f10f23e3a 100644 (file)
@@ -486,6 +486,11 @@ receive_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
   char mbuf[msize];
   struct GNUNET_MessageHeader *msg = (struct GNUNET_MessageHeader *) mbuf;
 
+#if DEBUG_CLIENT
+  GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
+             "Received message of size %u\n",
+             msize);
+#endif
   sock->receive_task = GNUNET_SCHEDULER_NO_TASK;
   GNUNET_assert (GNUNET_YES == sock->msg_complete);
   GNUNET_assert (sock->received_pos >= msize);