From 21acbaeb6082e40a460591597b4d4044db365a7a Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Thu, 18 Feb 2010 13:15:00 +0000 Subject: nicer msgs --- src/core/gnunet-service-core.c | 4 +++- src/hostlist/hostlist-client.c | 17 ++++++++++------- 2 files changed, 13 insertions(+), 8 deletions(-) (limited to 'src') diff --git a/src/core/gnunet-service-core.c b/src/core/gnunet-service-core.c index 2d2b4ea87..742a8ce76 100644 --- a/src/core/gnunet-service-core.c +++ b/src/core/gnunet-service-core.c @@ -1177,10 +1177,12 @@ notify_encrypted_transmit_ready (void *cls, size_t size, void *buf) } else { - GNUNET_log (GNUNET_ERROR_TYPE_WARNING, +#if DEBUG_CORE + GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Transmission of message of type %u and size %u failed\n", ntohs (((struct GNUNET_MessageHeader *) &m[1])->type), m->size); +#endif } GNUNET_free (m); consider_free_neighbour (n); diff --git a/src/hostlist/hostlist-client.c b/src/hostlist/hostlist-client.c index 972e2d27d..3a6987b6b 100644 --- a/src/hostlist/hostlist-client.c +++ b/src/hostlist/hostlist-client.c @@ -372,16 +372,19 @@ multi_ready (void *cls, switch (msg->msg) { case CURLMSG_DONE: - GNUNET_log (GNUNET_ERROR_TYPE_INFO, - _("Download of hostlist `%s' completed.\n"), - current_url); if ( (msg->data.result != CURLE_OK) && (msg->data.result != CURLE_GOT_NOTHING) ) - GNUNET_log(GNUNET_ERROR_TYPE_ERROR, - _("%s failed at %s:%d: `%s'\n"), - "curl_multi_perform", __FILE__, + GNUNET_log(GNUNET_ERROR_TYPE_INFO, + _("%s failed for `%s' at %s:%d: `%s'\n"), + "curl_multi_perform", + current_url, + __FILE__, __LINE__, curl_easy_strerror (msg->data.result)); + else + GNUNET_log (GNUNET_ERROR_TYPE_INFO, + _("Download of hostlist `%s' completed.\n"), + current_url); clean_up (); return; default: @@ -394,7 +397,7 @@ multi_ready (void *cls, while (mret == CURLM_CALL_MULTI_PERFORM); if (mret != CURLM_OK) { - GNUNET_log (GNUNET_ERROR_TYPE_ERROR, + GNUNET_log (GNUNET_ERROR_TYPE_INFO, _("%s failed at %s:%d: `%s'\n"), "curl_multi_perform", __FILE__, __LINE__, curl_multi_strerror (mret)); -- cgit v1.2.3