log missing config
authorJulius Bünger <buenger@mytum.de>
Wed, 22 Jul 2015 09:37:16 +0000 (09:37 +0000)
committerJulius Bünger <buenger@mytum.de>
Wed, 22 Jul 2015 09:37:16 +0000 (09:37 +0000)
src/rps/gnunet-service-rps.c

index eff4d82947d85cc5a125f7b93585269c44eefe69..7a5bf56bff47d575fe7e01aca0a12380b345c5a5 100644 (file)
@@ -2743,17 +2743,19 @@ run (void *cls,
                                                         "ROUNDINTERVAL",
                                                         &round_interval))
   {
-    LOG (GNUNET_ERROR_TYPE_DEBUG, "Failed to read ROUNDINTERVAL from config\n");
+    GNUNET_log_config_missing (GNUNET_ERROR_TYPE_ERROR,
+                               "RPS", "ROUNDINTERVAL");
     GNUNET_SCHEDULER_shutdown ();
     return;
   }
 
   /* Get initial size of sampler/view from the configuration */
-  if (GNUNET_OK != GNUNET_CONFIGURATION_get_value_number (cfg, "RPS",
-                                                         "INITSIZE",
-                                                         (long long unsigned int *) &sampler_size_est_need))
+  if (GNUNET_OK !=
+      GNUNET_CONFIGURATION_get_value_number (cfg, "RPS", "INITSIZE",
+        (long long unsigned int *) &sampler_size_est_need))
   {
-    LOG (GNUNET_ERROR_TYPE_DEBUG, "Failed to read INITSIZE from config\n");
+    GNUNET_log_config_missing (GNUNET_ERROR_TYPE_ERROR,
+                               "RPS", "INITSIZE");
     GNUNET_SCHEDULER_shutdown ();
     return;
   }