add logging to cadet initiatlizations
authorChristian Grothoff <christian@grothoff.org>
Wed, 27 Dec 2017 13:26:44 +0000 (14:26 +0100)
committerChristian Grothoff <christian@grothoff.org>
Wed, 27 Dec 2017 13:26:56 +0000 (14:26 +0100)
src/cadet/cadet_api.c

index 00a482452d338911898dd96af5b68ed38ae19048..4d923080af9f853ec1766fc4af261ab6ec4f548c 100644 (file)
@@ -1600,7 +1600,10 @@ GNUNET_CADET_open_port (struct GNUNET_CADET_Handle *h,
 
   GNUNET_assert (NULL != connects);
   GNUNET_assert (NULL != disconnects);
-
+  GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
+             "Listening to CADET port %s\n",
+             GNUNET_h2s (port));
+  
   p = GNUNET_new (struct GNUNET_CADET_Port);
   p->cadet = h;
   p->id = *port;
@@ -1663,6 +1666,10 @@ GNUNET_CADET_channel_create (struct GNUNET_CADET_Handle *h,
   struct GNUNET_MQ_Envelope *env;
 
   GNUNET_assert (NULL != disconnects);
+  GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
+             "Creating channel to peer %s at port %s\n",
+             GNUNET_i2s (destination),
+             GNUNET_h2s (port));
   ch = create_channel (h,
                        NULL);
   ch->ctx = channel_cls;