From 2f9ccf7cf902e617831a35638cf69f5012a6c22d Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sat, 17 Apr 2010 18:18:55 +0000 Subject: [PATCH] debug --- TODO | 7 +++---- src/fs/gnunet-service-fs.c | 4 +++- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/TODO b/TODO index 7699174ab..fe623bcf1 100644 --- a/TODO +++ b/TODO @@ -6,8 +6,7 @@ - does not seem to work with timeouts (especially if service is not running) * UTIL: - only connect() sockets that are ready (select()) [Nils] - [On W32, we need to select after calling socket before - doing connect etc.] + [On W32, we need to select after calling socket before doing connect etc.] * TOPOLOGY: - needs more testing (especially F2F topology) - needs to re-try connecting after disconnect (currently, it @@ -39,8 +38,8 @@ - check if new HELLO learned is different from old HELLO before resetting entire state! * DATASTORE: - - API lacks cancellation methods (needed? or is disconnect enough?); - may also want to integrate request queuing here instead of gnunet-service-fs_drq.c + - API lacks cancellation methods (needed? or is disconnect enough?) + - may also want to integrate request queuing here instead of gnunet-service-fs_drq.c * FS: [CG] - support recursive download even if filename is NULL and we hence do not generate files on disk (use temp_filename) diff --git a/src/fs/gnunet-service-fs.c b/src/fs/gnunet-service-fs.c index b4f262c54..faf436bc0 100644 --- a/src/fs/gnunet-service-fs.c +++ b/src/fs/gnunet-service-fs.c @@ -1633,11 +1633,13 @@ forward_request_task (void *cls, at this time! */ pr->ttl = bound_ttl (pr->ttl + TTL_DECREMENT * 2, pr->priority); - GNUNET_log (GNUNET_ERROR_TYPE_WARNING, +#if DEBUG_FS + GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Trying query `%s' with priority %u and TTL %d.\n", GNUNET_h2s (&pr->query), pr->priority, pr->ttl); +#endif } else { -- 2.25.1