log topology when extended logging is enabled
authorNathan S. Evans <evans@in.tum.de>
Fri, 21 Jan 2011 17:43:41 +0000 (17:43 +0000)
committerNathan S. Evans <evans@in.tum.de>
Fri, 21 Jan 2011 17:43:41 +0000 (17:43 +0000)
src/dht/gnunet-dht-driver.c

index 27e2c2c2ff4078da97760bcaf55d4d9b81ce23b0..8437d308b70da594e0218a53530e2bc9381bd9a4 100644 (file)
@@ -894,7 +894,8 @@ log_topology_cb (void *cls,
           topo_ctx->total_peers++;
         }
       topo_ctx->total_connections++;
-      if (GNUNET_YES == GNUNET_CONFIGURATION_get_value_yesno(config, "dht_testing", "mysql_logging"))
+      if ((GNUNET_YES == GNUNET_CONFIGURATION_get_value_yesno(config, "dht_testing", "mysql_logging")) ||
+          (GNUNET_YES == GNUNET_CONFIGURATION_get_value_yesno(config, "dht_testing", "mysql_logging_extended")))
         dhtlog_handle->insert_extended_topology(first, second);
     }
   else