diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-06-09 20:04:05 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-06-09 20:04:05 +0000 |
commit | e5b54d9cb7d9bbf9932032800d469667f1c2af9f (patch) | |
tree | e2f375841c3648715629c81a9aa17880bd5f922e | |
parent | 5332743767668b529282ae8877c21c706575558c (diff) | |
download | gnunet-e5b54d9cb7d9bbf9932032800d469667f1c2af9f.tar.gz gnunet-e5b54d9cb7d9bbf9932032800d469667f1c2af9f.zip |
-logging
-rw-r--r-- | src/core/core_api.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/core/core_api.c b/src/core/core_api.c index 4ec72e457..f1cb2e835 100644 --- a/src/core/core_api.c +++ b/src/core/core_api.c | |||
@@ -554,8 +554,10 @@ transmission_timeout (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
554 | GNUNET_free (th->cm); | 554 | GNUNET_free (th->cm); |
555 | } | 555 | } |
556 | LOG (GNUNET_ERROR_TYPE_DEBUG, | 556 | LOG (GNUNET_ERROR_TYPE_DEBUG, |
557 | "Signalling timeout of request for transmission to CORE service\n"); | 557 | "Signalling timeout of request for transmission to peer `%s' via CORE\n", |
558 | GNUNET_i2s (&pr->peer)); | ||
558 | trigger_next_request (h, GNUNET_NO); | 559 | trigger_next_request (h, GNUNET_NO); |
560 | |||
559 | GNUNET_assert (0 == th->get_message (th->get_message_cls, 0, NULL)); | 561 | GNUNET_assert (0 == th->get_message (th->get_message_cls, 0, NULL)); |
560 | } | 562 | } |
561 | 563 | ||
@@ -1283,6 +1285,10 @@ GNUNET_CORE_notify_transmit_ready (struct GNUNET_CORE_Handle *handle, int cork, | |||
1283 | struct GNUNET_CORE_TransmitHandle *th; | 1285 | struct GNUNET_CORE_TransmitHandle *th; |
1284 | 1286 | ||
1285 | GNUNET_assert (NULL != notify); | 1287 | GNUNET_assert (NULL != notify); |
1288 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | ||
1289 | "Asking core for transmission of %u bytes to `%s'\n", | ||
1290 | (unsigned int) notify_size, | ||
1291 | GNUNET_i2s (target)); | ||
1286 | pr = GNUNET_CONTAINER_multihashmap_get (handle->peers, &target->hashPubKey); | 1292 | pr = GNUNET_CONTAINER_multihashmap_get (handle->peers, &target->hashPubKey); |
1287 | if (NULL == pr) | 1293 | if (NULL == pr) |
1288 | { | 1294 | { |
@@ -1326,6 +1332,10 @@ GNUNET_CORE_notify_transmit_ready_cancel (struct GNUNET_CORE_TransmitHandle *th) | |||
1326 | struct GNUNET_CORE_Handle *h; | 1332 | struct GNUNET_CORE_Handle *h; |
1327 | 1333 | ||
1328 | GNUNET_assert (NULL != pr); | 1334 | GNUNET_assert (NULL != pr); |
1335 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | ||
1336 | "Aborting transmission request to core for %u bytes to `%s'\n", | ||
1337 | (unsigned int) th->msize, | ||
1338 | GNUNET_i2s (&pr->peer)); | ||
1329 | th->peer = NULL; | 1339 | th->peer = NULL; |
1330 | h = pr->ch; | 1340 | h = pr->ch; |
1331 | if (NULL != th->cm) | 1341 | if (NULL != th->cm) |