-logging
authorChristian Grothoff <christian@grothoff.org>
Mon, 25 May 2015 13:09:43 +0000 (13:09 +0000)
committerChristian Grothoff <christian@grothoff.org>
Mon, 25 May 2015 13:09:43 +0000 (13:09 +0000)
src/regex/regex_api.c
src/vpn/gnunet-service-vpn.c

index fb20bb20971e9409c2e5e404cf079833801aa371..09b3fd68d6691376b7d3097b87b5469b5c8bde85 100644 (file)
@@ -279,9 +279,6 @@ handle_search_response (void *cls,
                   pid,
                   &pid[1], gpl,
                   &pid[1 + gpl], ppl);
-      LOG (GNUNET_ERROR_TYPE_DEBUG,
-           "Returned from regex CB\n",
-           GNUNET_i2s (pid));
       return;
     }
   }
index 304ecb33c05ebbc948d31f86d4c7c9e2ac2fe1f7..2ae81a65bd0c6124e7541daa37a9d78ce01fca46 100644 (file)
@@ -892,6 +892,9 @@ expire_channel (struct ChannelState *except)
   GNUNET_assert (NULL != ts);
   if (except == ts)
     return; /* can't do this */
+  GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
+              "Tearing down expired channel to %s\n",
+              print_channel_destination (&except->destination));
   free_channel_state (ts);
 }
 
@@ -2495,7 +2498,8 @@ free_destination_entry (struct DestinationEntry *de)
   struct DestinationChannel *dt;
 
   GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
-             "Cleaning up destination entry\n");
+             "Cleaning up destination entry `%s'\n",
+              print_channel_destination (de));
   GNUNET_STATISTICS_update (stats,
                            gettext_noop ("# Active destinations"),
                            -1, GNUNET_NO);
@@ -2840,6 +2844,9 @@ channel_cleaner (void *cls,
   struct ChannelState *ts = channel_ctx;
 
   ts->channel = NULL; /* we must not call GNUNET_CADET_channel_destroy() anymore */
+  GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
+             "CADET notified us about death of channel to `%s'\n",
+              print_channel_destination (&ts->destination));
   free_channel_state (ts);
 }
 
@@ -2874,11 +2881,14 @@ cleanup_destination (void *cls,
  */
 static int
 cleanup_channel (void *cls,
-               const struct GNUNET_HashCode *key,
-               void *value)
+                 const struct GNUNET_HashCode *key,
+                 void *value)
 {
   struct ChannelState *ts = value;
 
+  GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
+             "Tearing down channel to `%s' during cleanup\n",
+              print_channel_destination (&ts->destination));
   free_channel_state (ts);
   return GNUNET_OK;
 }