From 28e2cbb911ee174d17a5eb0de41465d668b133d0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Julius=20B=C3=BCnger?= Date: Wed, 21 Mar 2018 07:51:42 +0100 Subject: [PATCH] rps: logging --- src/rps/gnunet-service-rps.c | 5 +++++ src/rps/rps_api.c | 3 +++ 2 files changed, 8 insertions(+) diff --git a/src/rps/gnunet-service-rps.c b/src/rps/gnunet-service-rps.c index fabef9388..30d677849 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 62ba9e226..0da3bd4a4 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; -- 2.25.1