aboutsummaryrefslogtreecommitdiff
path: root/src/vpn
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2015-05-25 13:09:43 +0000
committerChristian Grothoff <christian@grothoff.org>2015-05-25 13:09:43 +0000
commit045655fe5049ea6087685b79391465873822277f (patch)
treec80569cbedcf4c2a4c53461fccb06d601ec7764e /src/vpn
parent8e03b253f24f53118a20a4a89eafbb482a346adb (diff)
downloadgnunet-045655fe5049ea6087685b79391465873822277f.tar.gz
gnunet-045655fe5049ea6087685b79391465873822277f.zip
-logging
Diffstat (limited to 'src/vpn')
-rw-r--r--src/vpn/gnunet-service-vpn.c16
1 files changed, 13 insertions, 3 deletions
diff --git a/src/vpn/gnunet-service-vpn.c b/src/vpn/gnunet-service-vpn.c
index 304ecb33c..2ae81a65b 100644
--- a/src/vpn/gnunet-service-vpn.c
+++ b/src/vpn/gnunet-service-vpn.c
@@ -892,6 +892,9 @@ expire_channel (struct ChannelState *except)
892 GNUNET_assert (NULL != ts); 892 GNUNET_assert (NULL != ts);
893 if (except == ts) 893 if (except == ts)
894 return; /* can't do this */ 894 return; /* can't do this */
895 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
896 "Tearing down expired channel to %s\n",
897 print_channel_destination (&except->destination));
895 free_channel_state (ts); 898 free_channel_state (ts);
896} 899}
897 900
@@ -2495,7 +2498,8 @@ free_destination_entry (struct DestinationEntry *de)
2495 struct DestinationChannel *dt; 2498 struct DestinationChannel *dt;
2496 2499
2497 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 2500 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
2498 "Cleaning up destination entry\n"); 2501 "Cleaning up destination entry `%s'\n",
2502 print_channel_destination (de));
2499 GNUNET_STATISTICS_update (stats, 2503 GNUNET_STATISTICS_update (stats,
2500 gettext_noop ("# Active destinations"), 2504 gettext_noop ("# Active destinations"),
2501 -1, GNUNET_NO); 2505 -1, GNUNET_NO);
@@ -2840,6 +2844,9 @@ channel_cleaner (void *cls,
2840 struct ChannelState *ts = channel_ctx; 2844 struct ChannelState *ts = channel_ctx;
2841 2845
2842 ts->channel = NULL; /* we must not call GNUNET_CADET_channel_destroy() anymore */ 2846 ts->channel = NULL; /* we must not call GNUNET_CADET_channel_destroy() anymore */
2847 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
2848 "CADET notified us about death of channel to `%s'\n",
2849 print_channel_destination (&ts->destination));
2843 free_channel_state (ts); 2850 free_channel_state (ts);
2844} 2851}
2845 2852
@@ -2874,11 +2881,14 @@ cleanup_destination (void *cls,
2874 */ 2881 */
2875static int 2882static int
2876cleanup_channel (void *cls, 2883cleanup_channel (void *cls,
2877 const struct GNUNET_HashCode *key, 2884 const struct GNUNET_HashCode *key,
2878 void *value) 2885 void *value)
2879{ 2886{
2880 struct ChannelState *ts = value; 2887 struct ChannelState *ts = value;
2881 2888
2889 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
2890 "Tearing down channel to `%s' during cleanup\n",
2891 print_channel_destination (&ts->destination));
2882 free_channel_state (ts); 2892 free_channel_state (ts);
2883 return GNUNET_OK; 2893 return GNUNET_OK;
2884} 2894}