rps: logging
authorJulius Bünger <buenger@mytum.de>
Wed, 21 Mar 2018 06:51:42 +0000 (07:51 +0100)
committerJulius Bünger <buenger@mytum.de>
Wed, 21 Mar 2018 09:12:25 +0000 (10:12 +0100)
src/rps/gnunet-service-rps.c
src/rps/rps_api.c

index fabef9388e8575b05aa1799a700d2d5598d2f2b6..30d677849181c8d32493b0b4805645386c618365 100644 (file)
@@ -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,
index 62ba9e226d77f5fe8490118561f31b60d0283848..0da3bd4a4a43b3c5a8f45ba56f3a0d7011069d0d 100644 (file)
@@ -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;