aboutsummaryrefslogtreecommitdiff
path: root/src/service/peerstore/gnunet-service-peerstore.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/service/peerstore/gnunet-service-peerstore.c')
-rw-r--r--src/service/peerstore/gnunet-service-peerstore.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/service/peerstore/gnunet-service-peerstore.c b/src/service/peerstore/gnunet-service-peerstore.c
index 2a8ecdfa2..364900674 100644
--- a/src/service/peerstore/gnunet-service-peerstore.c
+++ b/src/service/peerstore/gnunet-service-peerstore.c
@@ -157,7 +157,7 @@ static void
157expire_records_continuation (void *cls, int success) 157expire_records_continuation (void *cls, int success)
158{ 158{
159 if (success > 0) 159 if (success > 0)
160 GNUNET_log (GNUNET_ERROR_TYPE_INFO, "%d records expired.\n", success); 160 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "%d records expired.\n", success);
161 GNUNET_assert (NULL == expire_task); 161 GNUNET_assert (NULL == expire_task);
162 expire_task = GNUNET_SCHEDULER_add_delayed ( 162 expire_task = GNUNET_SCHEDULER_add_delayed (
163 GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 163 GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS,
@@ -508,7 +508,7 @@ handle_store (void *cls, const struct StoreRecordMessage *srm)
508 508
509 record = PEERSTORE_parse_record_message (srm); 509 record = PEERSTORE_parse_record_message (srm);
510 GNUNET_log ( 510 GNUNET_log (
511 GNUNET_ERROR_TYPE_INFO, 511 GNUNET_ERROR_TYPE_DEBUG,
512 "Received a store request. Sub system `%s' Peer `%s Key `%s' Options: %u.\n", 512 "Received a store request. Sub system `%s' Peer `%s Key `%s' Options: %u.\n",
513 record->sub_system, 513 record->sub_system,
514 GNUNET_i2s (&record->peer), 514 GNUNET_i2s (&record->peer),
@@ -596,12 +596,18 @@ hosts_directory_scan_callback (void *cls, const char *fullname)
596 } 596 }
597 hello = (const struct GNUNET_MessageHeader *) &buffer[0]; 597 hello = (const struct GNUNET_MessageHeader *) &buffer[0];
598 builder = GNUNET_HELLO_builder_from_msg (hello); 598 builder = GNUNET_HELLO_builder_from_msg (hello);
599 if (NULL == builder)
600 {
601 GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
602 "Unable to parse HELLO message\n");
603 return GNUNET_OK;
604 }
599 pid = GNUNET_HELLO_builder_get_id (builder); 605 pid = GNUNET_HELLO_builder_get_id (builder);
600 606
601 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 607 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
602 "store contrib hello for peer %s\n", 608 "store contrib hello for peer %s\n",
603 GNUNET_i2s (pid)); 609 GNUNET_i2s (pid));
604 610
605 if (GNUNET_OK != db->store_record (db->cls, 611 if (GNUNET_OK != db->store_record (db->cls,
606 "peerstore", 612 "peerstore",
607 pid, 613 pid,