From 4c462cd59d3b82e7e10711762f1b95a905609118 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Wed, 27 Dec 2017 14:26:44 +0100 Subject: [PATCH] add logging to cadet initiatlizations --- src/cadet/cadet_api.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/cadet/cadet_api.c b/src/cadet/cadet_api.c index 00a482452..4d923080a 100644 --- a/src/cadet/cadet_api.c +++ b/src/cadet/cadet_api.c @@ -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; -- 2.25.1