diff options
author | Christian Grothoff <christian@grothoff.org> | 2010-02-18 13:15:00 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2010-02-18 13:15:00 +0000 |
commit | 21acbaeb6082e40a460591597b4d4044db365a7a (patch) | |
tree | 8fbf9a42257f0d4e43abeaeea12d385cf9ea7b1d /src | |
parent | 0d0886cc467bf46358245ea0d8a66638daa969a0 (diff) | |
download | gnunet-21acbaeb6082e40a460591597b4d4044db365a7a.tar.gz gnunet-21acbaeb6082e40a460591597b4d4044db365a7a.zip |
nicer msgs
Diffstat (limited to 'src')
-rw-r--r-- | src/core/gnunet-service-core.c | 4 | ||||
-rw-r--r-- | src/hostlist/hostlist-client.c | 17 |
2 files changed, 13 insertions, 8 deletions
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) | |||
1177 | } | 1177 | } |
1178 | else | 1178 | else |
1179 | { | 1179 | { |
1180 | GNUNET_log (GNUNET_ERROR_TYPE_WARNING, | 1180 | #if DEBUG_CORE |
1181 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | ||
1181 | "Transmission of message of type %u and size %u failed\n", | 1182 | "Transmission of message of type %u and size %u failed\n", |
1182 | ntohs (((struct GNUNET_MessageHeader *) &m[1])->type), | 1183 | ntohs (((struct GNUNET_MessageHeader *) &m[1])->type), |
1183 | m->size); | 1184 | m->size); |
1185 | #endif | ||
1184 | } | 1186 | } |
1185 | GNUNET_free (m); | 1187 | GNUNET_free (m); |
1186 | consider_free_neighbour (n); | 1188 | 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, | |||
372 | switch (msg->msg) | 372 | switch (msg->msg) |
373 | { | 373 | { |
374 | case CURLMSG_DONE: | 374 | case CURLMSG_DONE: |
375 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, | ||
376 | _("Download of hostlist `%s' completed.\n"), | ||
377 | current_url); | ||
378 | if ( (msg->data.result != CURLE_OK) && | 375 | if ( (msg->data.result != CURLE_OK) && |
379 | (msg->data.result != CURLE_GOT_NOTHING) ) | 376 | (msg->data.result != CURLE_GOT_NOTHING) ) |
380 | GNUNET_log(GNUNET_ERROR_TYPE_ERROR, | 377 | GNUNET_log(GNUNET_ERROR_TYPE_INFO, |
381 | _("%s failed at %s:%d: `%s'\n"), | 378 | _("%s failed for `%s' at %s:%d: `%s'\n"), |
382 | "curl_multi_perform", __FILE__, | 379 | "curl_multi_perform", |
380 | current_url, | ||
381 | __FILE__, | ||
383 | __LINE__, | 382 | __LINE__, |
384 | curl_easy_strerror (msg->data.result)); | 383 | curl_easy_strerror (msg->data.result)); |
384 | else | ||
385 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, | ||
386 | _("Download of hostlist `%s' completed.\n"), | ||
387 | current_url); | ||
385 | clean_up (); | 388 | clean_up (); |
386 | return; | 389 | return; |
387 | default: | 390 | default: |
@@ -394,7 +397,7 @@ multi_ready (void *cls, | |||
394 | while (mret == CURLM_CALL_MULTI_PERFORM); | 397 | while (mret == CURLM_CALL_MULTI_PERFORM); |
395 | if (mret != CURLM_OK) | 398 | if (mret != CURLM_OK) |
396 | { | 399 | { |
397 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, | 400 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, |
398 | _("%s failed at %s:%d: `%s'\n"), | 401 | _("%s failed at %s:%d: `%s'\n"), |
399 | "curl_multi_perform", __FILE__, __LINE__, | 402 | "curl_multi_perform", __FILE__, __LINE__, |
400 | curl_multi_strerror (mret)); | 403 | curl_multi_strerror (mret)); |