diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-10-24 16:45:37 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-10-24 16:45:37 +0000 |
commit | 7f0b9b87f1f1fba7924bdf8082196cf24b6651c8 (patch) | |
tree | 99ef1690516b232226ddccc8086bda0c6ee0e118 /src/dht | |
parent | 8ce2f3cca8c7d75db63f6e761e6747384249b5e7 (diff) | |
download | gnunet-7f0b9b87f1f1fba7924bdf8082196cf24b6651c8.tar.gz gnunet-7f0b9b87f1f1fba7924bdf8082196cf24b6651c8.zip |
log local operations
Diffstat (limited to 'src/dht')
-rw-r--r-- | src/dht/gnunet-service-dht_clients.c | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/src/dht/gnunet-service-dht_clients.c b/src/dht/gnunet-service-dht_clients.c index 1a4e71314..ad16ddc3f 100644 --- a/src/dht/gnunet-service-dht_clients.c +++ b/src/dht/gnunet-service-dht_clients.c | |||
@@ -403,13 +403,17 @@ handle_dht_local_put (void *cls, struct GNUNET_SERVER_Client *client, | |||
403 | GNUNET_NO); | 403 | GNUNET_NO); |
404 | dht_msg = (const struct GNUNET_DHT_ClientPutMessage *) message; | 404 | dht_msg = (const struct GNUNET_DHT_ClientPutMessage *) message; |
405 | /* give to local clients */ | 405 | /* give to local clients */ |
406 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | ||
407 | "Passing %u-byte reply for query %s to local clients\n", | ||
408 | size - sizeof (struct GNUNET_DHT_ClientPutMessage), | ||
409 | GNUNET_h2s (&dht_msg->key)); | ||
406 | GDS_CLIENTS_handle_reply (GNUNET_TIME_absolute_ntoh (dht_msg->expiration), | 410 | GDS_CLIENTS_handle_reply (GNUNET_TIME_absolute_ntoh (dht_msg->expiration), |
407 | &dht_msg->key, | 411 | &dht_msg->key, |
408 | 0, NULL, | 412 | 0, NULL, |
409 | 0, NULL, | 413 | 0, NULL, |
410 | ntohl (dht_msg->type), | 414 | ntohl (dht_msg->type), |
411 | size - sizeof (struct GNUNET_DHT_ClientPutMessage), | 415 | size - sizeof (struct GNUNET_DHT_ClientPutMessage), |
412 | &dht_msg[1]); | 416 | &dht_msg[1]); |
413 | /* store locally */ | 417 | /* store locally */ |
414 | GDS_DATACACHE_handle_put (GNUNET_TIME_absolute_ntoh (dht_msg->expiration), | 418 | GDS_DATACACHE_handle_put (GNUNET_TIME_absolute_ntoh (dht_msg->expiration), |
415 | &dht_msg->key, | 419 | &dht_msg->key, |
@@ -468,7 +472,9 @@ handle_dht_local_get (void *cls, struct GNUNET_SERVER_Client *client, | |||
468 | GNUNET_STATISTICS_update (GDS_stats, | 472 | GNUNET_STATISTICS_update (GDS_stats, |
469 | gettext_noop ("# GET requests received from clients"), 1, | 473 | gettext_noop ("# GET requests received from clients"), 1, |
470 | GNUNET_NO); | 474 | GNUNET_NO); |
471 | 475 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | |
476 | "Received request for %s from local client\n", | ||
477 | GNUNET_h2s (&get->key)); | ||
472 | cqr = GNUNET_malloc (sizeof (struct ClientQueryRecord) + xquery_size); | 478 | cqr = GNUNET_malloc (sizeof (struct ClientQueryRecord) + xquery_size); |
473 | cqr->key = get->key; | 479 | cqr->key = get->key; |
474 | cqr->client = find_active_client (client); | 480 | cqr->client = find_active_client (client); |