diff options
author | Christian Grothoff <christian@grothoff.org> | 2017-12-27 14:06:38 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2017-12-27 14:26:55 +0100 |
commit | 04c9c333aad427d21ab34d96dd3963c9e385cf41 (patch) | |
tree | c8e2a06acba69aa9a06e6c34152facbc9e0fa623 | |
parent | 111cae2400240d06ba454de7744e115cdc82b15c (diff) | |
download | gnunet-04c9c333aad427d21ab34d96dd3963c9e385cf41.tar.gz gnunet-04c9c333aad427d21ab34d96dd3963c9e385cf41.zip |
more logging for transport
-rw-r--r-- | src/transport/gnunet-service-transport.c | 4 | ||||
-rw-r--r-- | src/transport/gnunet-service-transport_validation.c | 13 |
2 files changed, 16 insertions, 1 deletions
diff --git a/src/transport/gnunet-service-transport.c b/src/transport/gnunet-service-transport.c index 6b354df98..124260c41 100644 --- a/src/transport/gnunet-service-transport.c +++ b/src/transport/gnunet-service-transport.c | |||
@@ -688,6 +688,8 @@ handle_client_hello (void *cls, | |||
688 | { | 688 | { |
689 | struct TransportClient *tc = cls; | 689 | struct TransportClient *tc = cls; |
690 | 690 | ||
691 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, | ||
692 | "Received HELLO message\n"); | ||
691 | GST_validation_handle_hello (message); | 693 | GST_validation_handle_hello (message); |
692 | GNUNET_SERVICE_client_continue (tc->client); | 694 | GNUNET_SERVICE_client_continue (tc->client); |
693 | } | 695 | } |
@@ -2802,7 +2804,7 @@ run (void *cls, | |||
2802 | GNUNET_assert (NULL != GST_my_private_key); | 2804 | GNUNET_assert (NULL != GST_my_private_key); |
2803 | 2805 | ||
2804 | GNUNET_log(GNUNET_ERROR_TYPE_INFO, | 2806 | GNUNET_log(GNUNET_ERROR_TYPE_INFO, |
2805 | "My identity is `%4s'\n", | 2807 | "My identity is `%s'\n", |
2806 | GNUNET_i2s_full (&GST_my_identity)); | 2808 | GNUNET_i2s_full (&GST_my_identity)); |
2807 | 2809 | ||
2808 | GNUNET_SCHEDULER_add_shutdown (&shutdown_task, | 2810 | GNUNET_SCHEDULER_add_shutdown (&shutdown_task, |
diff --git a/src/transport/gnunet-service-transport_validation.c b/src/transport/gnunet-service-transport_validation.c index 27c3c7041..cd5aeb5e2 100644 --- a/src/transport/gnunet-service-transport_validation.c +++ b/src/transport/gnunet-service-transport_validation.c | |||
@@ -1347,6 +1347,9 @@ GST_validation_handle_address (const struct GNUNET_HELLO_Address *address) | |||
1347 | if (NULL == papi) | 1347 | if (NULL == papi) |
1348 | { | 1348 | { |
1349 | /* This plugin is currently unvailable ... ignore */ | 1349 | /* This plugin is currently unvailable ... ignore */ |
1350 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, | ||
1351 | "No plugin available for %s\n", | ||
1352 | address->transport_name); | ||
1350 | return; | 1353 | return; |
1351 | } | 1354 | } |
1352 | ve = find_validation_entry (address); | 1355 | ve = find_validation_entry (address); |
@@ -1358,6 +1361,13 @@ GST_validation_handle_address (const struct GNUNET_HELLO_Address *address) | |||
1358 | GNUNET_i2s (&ve->address->peer)); | 1361 | GNUNET_i2s (&ve->address->peer)); |
1359 | ve->revalidation_task = GNUNET_SCHEDULER_add_now (&revalidate_address, ve); | 1362 | ve->revalidation_task = GNUNET_SCHEDULER_add_now (&revalidate_address, ve); |
1360 | } | 1363 | } |
1364 | else | ||
1365 | { | ||
1366 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, | ||
1367 | "Validation already running for address `%s' of %s\n", | ||
1368 | GST_plugins_a2s (ve->address), | ||
1369 | GNUNET_i2s (&ve->address->peer)); | ||
1370 | } | ||
1361 | } | 1371 | } |
1362 | 1372 | ||
1363 | 1373 | ||
@@ -1657,6 +1667,9 @@ GST_validation_handle_hello (const struct GNUNET_MessageHeader *hello) | |||
1657 | sizeof (struct GNUNET_PeerIdentity))) | 1667 | sizeof (struct GNUNET_PeerIdentity))) |
1658 | { | 1668 | { |
1659 | /* got our own HELLO, how boring */ | 1669 | /* got our own HELLO, how boring */ |
1670 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | ||
1671 | "Validation received our own HELLO (%s), ignoring\n", | ||
1672 | GNUNET_i2s (&pid)); | ||
1660 | return GNUNET_OK; | 1673 | return GNUNET_OK; |
1661 | } | 1674 | } |
1662 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 1675 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |