aboutsummaryrefslogtreecommitdiff
path: root/src/rps
diff options
context:
space:
mode:
authorJulius Bünger <buenger@mytum.de>2018-03-21 07:51:42 +0100
committerJulius Bünger <buenger@mytum.de>2018-03-21 10:12:25 +0100
commit28e2cbb911ee174d17a5eb0de41465d668b133d0 (patch)
tree1046bffb5e8844a3f0ce59a979235124cd9eb6f6 /src/rps
parentc420d3cda71d7a75c0f8d466dfc007993fa6e110 (diff)
rps: logging
Diffstat (limited to 'src/rps')
-rw-r--r--src/rps/gnunet-service-rps.c5
-rw-r--r--src/rps/rps_api.c3
2 files changed, 8 insertions, 0 deletions
diff --git a/src/rps/gnunet-service-rps.c b/src/rps/gnunet-service-rps.c
index fabef9388e..30d6778491 100644
--- a/src/rps/gnunet-service-rps.c
+++ b/src/rps/gnunet-service-rps.c
@@ -3848,6 +3848,11 @@ do_round (void *cls)
CustomPeerMap_size (pull_map));
final_size = second_border +
ceil ((1 - (alpha + beta)) * view_size_est_need);
+ LOG (GNUNET_ERROR_TYPE_DEBUG,
+ "first border: %" PRIu32 ", second border: %" PRIu32 ", final size: %"PRIu32 "\n",
+ first_border,
+ second_border,
+ final_size);
/* Update view with peers received through PUSHes */
permut = GNUNET_CRYPTO_random_permute (GNUNET_CRYPTO_QUALITY_STRONG,
diff --git a/src/rps/rps_api.c b/src/rps/rps_api.c
index 62ba9e226d..0da3bd4a4a 100644
--- a/src/rps/rps_api.c
+++ b/src/rps/rps_api.c
@@ -266,6 +266,9 @@ GNUNET_RPS_view_request (struct GNUNET_RPS_Handle *rps_handle,
struct GNUNET_MQ_Envelope *ev;
struct GNUNET_RPS_CS_DEBUG_ViewRequest *msg;
+ LOG (GNUNET_ERROR_TYPE_DEBUG,
+ "Client requests %" PRIu32 " view updates\n",
+ num_updates);
rps_handle->view_update_cb = view_update_cb;
rps_handle->view_update_cls = cls;