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);
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);
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;