gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r17118 - gnunet/src/dht


From: gnunet
Subject: [GNUnet-SVN] r17118 - gnunet/src/dht
Date: Thu, 29 Sep 2011 23:29:08 +0200

Author: grothoff
Date: 2011-09-29 23:29:08 +0200 (Thu, 29 Sep 2011)
New Revision: 17118

Modified:
   gnunet/src/dht/gnunet-service-dht_datacache.c
   gnunet/src/dht/gnunet-service-dht_neighbours.c
Log:
log more details for debugging

Modified: gnunet/src/dht/gnunet-service-dht_datacache.c
===================================================================
--- gnunet/src/dht/gnunet-service-dht_datacache.c       2011-09-29 21:28:53 UTC 
(rev 17117)
+++ gnunet/src/dht/gnunet-service-dht_datacache.c       2011-09-29 21:29:08 UTC 
(rev 17118)
@@ -109,6 +109,10 @@
   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);

Modified: gnunet/src/dht/gnunet-service-dht_neighbours.c
===================================================================
--- gnunet/src/dht/gnunet-service-dht_neighbours.c      2011-09-29 21:28:53 UTC 
(rev 17117)
+++ gnunet/src/dht/gnunet-service-dht_neighbours.c      2011-09-29 21:29:08 UTC 
(rev 17118)
@@ -1215,9 +1215,10 @@
   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 @@
   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;




reply via email to

[Prev in Thread] Current Thread [Next in Thread]