diff options
author | Christian Grothoff <christian@grothoff.org> | 2017-12-27 14:26:44 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2017-12-27 14:26:56 +0100 |
commit | 4c462cd59d3b82e7e10711762f1b95a905609118 (patch) | |
tree | d7b65800f5fbbfb7a082092b3c85f29de2366880 /src/cadet/cadet_api.c | |
parent | ae31198dd482e7ef7c04cca34e999dec05217d1c (diff) | |
download | gnunet-4c462cd59d3b82e7e10711762f1b95a905609118.tar.gz gnunet-4c462cd59d3b82e7e10711762f1b95a905609118.zip |
add logging to cadet initiatlizations
Diffstat (limited to 'src/cadet/cadet_api.c')
-rw-r--r-- | src/cadet/cadet_api.c | 9 |
1 files changed, 8 insertions, 1 deletions
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, | |||
1600 | 1600 | ||
1601 | GNUNET_assert (NULL != connects); | 1601 | GNUNET_assert (NULL != connects); |
1602 | GNUNET_assert (NULL != disconnects); | 1602 | GNUNET_assert (NULL != disconnects); |
1603 | 1603 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | |
1604 | "Listening to CADET port %s\n", | ||
1605 | GNUNET_h2s (port)); | ||
1606 | |||
1604 | p = GNUNET_new (struct GNUNET_CADET_Port); | 1607 | p = GNUNET_new (struct GNUNET_CADET_Port); |
1605 | p->cadet = h; | 1608 | p->cadet = h; |
1606 | p->id = *port; | 1609 | p->id = *port; |
@@ -1663,6 +1666,10 @@ GNUNET_CADET_channel_create (struct GNUNET_CADET_Handle *h, | |||
1663 | struct GNUNET_MQ_Envelope *env; | 1666 | struct GNUNET_MQ_Envelope *env; |
1664 | 1667 | ||
1665 | GNUNET_assert (NULL != disconnects); | 1668 | GNUNET_assert (NULL != disconnects); |
1669 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | ||
1670 | "Creating channel to peer %s at port %s\n", | ||
1671 | GNUNET_i2s (destination), | ||
1672 | GNUNET_h2s (port)); | ||
1666 | ch = create_channel (h, | 1673 | ch = create_channel (h, |
1667 | NULL); | 1674 | NULL); |
1668 | ch->ctx = channel_cls; | 1675 | ch->ctx = channel_cls; |