diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-09-29 21:29:08 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-09-29 21:29:08 +0000 |
commit | bd62a37da1a7d0936e189c885b6c58866a169663 (patch) | |
tree | 1bb308e310bdddd774cd7aa604cac7dba7a77f40 /src/dht | |
parent | 7c9cd183e8309a53c178ea96ec0e16406c7fa63e (diff) | |
download | gnunet-bd62a37da1a7d0936e189c885b6c58866a169663.tar.gz gnunet-bd62a37da1a7d0936e189c885b6c58866a169663.zip |
log more details for debugging
Diffstat (limited to 'src/dht')
-rw-r--r-- | src/dht/gnunet-service-dht_datacache.c | 4 | ||||
-rw-r--r-- | src/dht/gnunet-service-dht_neighbours.c | 7 |
2 files changed, 8 insertions, 3 deletions
diff --git a/src/dht/gnunet-service-dht_datacache.c b/src/dht/gnunet-service-dht_datacache.c index 1ba176e6e..9ecbd3673 100644 --- a/src/dht/gnunet-service-dht_datacache.c +++ b/src/dht/gnunet-service-dht_datacache.c | |||
@@ -109,6 +109,10 @@ GDS_DATACACHE_handle_put (struct GNUNET_TIME_Absolute expiration, | |||
109 | memcpy (pp, put_path, put_path_length * sizeof (struct GNUNET_PeerIdentity)); | 109 | memcpy (pp, put_path, put_path_length * sizeof (struct GNUNET_PeerIdentity)); |
110 | memcpy (&pp[put_path_length], | 110 | memcpy (&pp[put_path_length], |
111 | data, data_size); | 111 | data, data_size); |
112 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, | ||
113 | "Storing data for `%s' after put path of %u hops!\n", | ||
114 | GNUNET_h2s (key), | ||
115 | put_path_length); | ||
112 | (void) GNUNET_DATACACHE_put (datacache, key, | 116 | (void) GNUNET_DATACACHE_put (datacache, key, |
113 | plen, (const char *) pe, type, | 117 | plen, (const char *) pe, type, |
114 | expiration); | 118 | expiration); |
diff --git a/src/dht/gnunet-service-dht_neighbours.c b/src/dht/gnunet-service-dht_neighbours.c index acc8eaa27..e31c17f48 100644 --- a/src/dht/gnunet-service-dht_neighbours.c +++ b/src/dht/gnunet-service-dht_neighbours.c | |||
@@ -1215,9 +1215,10 @@ GDS_NEIGHBOURS_handle_put (enum GNUNET_BLOCK_Type type, | |||
1215 | if (0 == target_count) | 1215 | if (0 == target_count) |
1216 | { | 1216 | { |
1217 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, | 1217 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, |
1218 | "Not forwarding PUT for `%s' after %u hops!\n", | 1218 | "Not forwarding PUT for `%s' after %u hops (NSE: %f)!\n", |
1219 | GNUNET_h2s (key), | 1219 | GNUNET_h2s (key), |
1220 | hop_count); | 1220 | hop_count, |
1221 | GDS_NSE_get()); | ||
1221 | return; | 1222 | return; |
1222 | } | 1223 | } |
1223 | msize = put_path_length * sizeof (struct GNUNET_PeerIdentity) + data_size + sizeof (struct PeerPutMessage); | 1224 | 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, | |||
1319 | if (0 == target_count) | 1320 | if (0 == target_count) |
1320 | { | 1321 | { |
1321 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, | 1322 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, |
1322 | "Not forwarding PUT for `%s' after %u hops!\n", | 1323 | "Not forwarding GET for `%s' after %u hops!\n", |
1323 | GNUNET_h2s (key), | 1324 | GNUNET_h2s (key), |
1324 | hop_count); | 1325 | hop_count); |
1325 | return; | 1326 | return; |