log more details for debugging
authorChristian Grothoff <christian@grothoff.org>
Thu, 29 Sep 2011 21:29:08 +0000 (21:29 +0000)
committerChristian Grothoff <christian@grothoff.org>
Thu, 29 Sep 2011 21:29:08 +0000 (21:29 +0000)
src/dht/gnunet-service-dht_datacache.c
src/dht/gnunet-service-dht_neighbours.c

index 1ba176e6eaa13f34bb9feb57c8c5e0c104532b74..9ecbd36734db7365118b32542601dbcb86f6a211 100644 (file)
@@ -109,6 +109,10 @@ GDS_DATACACHE_handle_put (struct GNUNET_TIME_Absolute expiration,
   memcpy (pp, put_path, put_path_length * sizeof (struct GNUNET_PeerIdentity));
   memcpy (&pp[put_path_length],
          data, data_size);
+  GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
+             "Storing data for `%s' after put path of %u hops!\n",
+             GNUNET_h2s (key),
+             put_path_length);
   (void) GNUNET_DATACACHE_put (datacache, key, 
                               plen, (const char *) pe, type,
                               expiration);
index acc8eaa27dbbea1b485298c0b39461951af62f2f..e31c17f48556bf662f2a6cc3586af9fc2ab96ee8 100644 (file)
@@ -1215,9 +1215,10 @@ GDS_NEIGHBOURS_handle_put (enum GNUNET_BLOCK_Type type,
   if (0 == target_count)
     {
       GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
-                 "Not forwarding PUT for `%s' after %u hops!\n",
+                 "Not forwarding PUT for `%s' after %u hops (NSE: %f)!\n",
                  GNUNET_h2s (key),
-                 hop_count);
+                 hop_count,
+                 GDS_NSE_get());
       return;
     }
   msize = put_path_length * sizeof (struct GNUNET_PeerIdentity) + data_size + sizeof (struct PeerPutMessage);
@@ -1319,7 +1320,7 @@ GDS_NEIGHBOURS_handle_get (enum GNUNET_BLOCK_Type type,
   if (0 == target_count)
     {
       GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
-                 "Not forwarding PUT for `%s' after %u hops!\n",
+                 "Not forwarding GET for `%s' after %u hops!\n",
                  GNUNET_h2s (key),
                  hop_count);
       return;