From: Matthias Wachs Date: Tue, 27 Apr 2010 15:06:08 +0000 (+0000) Subject: (no commit message) X-Git-Tag: initial-import-from-subversion-38251~21995 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=6e68bd6374d100059d09dbd0912f749767bdfb8e;p=oweals%2Fgnunet.git --- diff --git a/src/hostlist/hostlist-server.c b/src/hostlist/hostlist-server.c index 1f8a7af7f..7c440c103 100644 --- a/src/hostlist/hostlist-server.c +++ b/src/hostlist/hostlist-server.c @@ -236,10 +236,12 @@ host_processor (void *cls, GNUNET_NO); return; /* too large, skip! */ } +#if DEBUG_HOSTLIST_SERVER GNUNET_log (GNUNET_ERROR_TYPE_INFO, "Adding peer `%s' to hostlist (%u bytes)\n", GNUNET_i2s (peer), (unsigned int) s); +#endif GNUNET_array_grow (results->data, results->size, old + s); @@ -366,6 +368,9 @@ adv_transmit_ready ( void *cls, size_t size, void *buf) "Sent advertisement message: Copied %u bytes into buffer!\n", (unsigned int) transmission_size); hostlist_adv_count++; + GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, + " # Sent advertisement message: %u\n", + hostlist_adv_count); GNUNET_STATISTICS_set (stats, gettext_noop("# hostlist advertisements send"), hostlist_adv_count, @@ -453,9 +458,10 @@ process_notify (void *cls, uint32_t trust) { struct HostSet *results; - +#if DEBUG_HOSTLIST_SERVER GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Peerinfo is notifying us to rebuild our hostlist\n"); +#endif results = GNUNET_malloc(sizeof(struct HostSet)); GNUNET_assert (peerinfo != NULL); pitr = GNUNET_PEERINFO_iterate (peerinfo,