(no commit message)
authorMatthias Wachs <wachs@net.in.tum.de>
Thu, 6 Oct 2011 13:53:19 +0000 (13:53 +0000)
committerMatthias Wachs <wachs@net.in.tum.de>
Thu, 6 Oct 2011 13:53:19 +0000 (13:53 +0000)
src/transport/plugin_transport_http.c
src/transport/plugin_transport_http.h
src/transport/test_transport_api_http_nat_peer1.conf

index 3c61cf2427a306b9c943e44ee34a53b7b84dfaa6..857f5c83bacf88963ab8d2cf28aec6770bef293e 100644 (file)
@@ -763,22 +763,16 @@ nat_port_map_callback (void *cls, int add_remove, const struct sockaddr *addr,
 #if DEBUG_HTTP
   struct Plugin *plugin = cls;
 #endif
-  //static int limit;
 #if DEBUG_HTTP
-  GNUNET_log_from (GNUNET_ERROR_TYPE_DEBUG, plugin->name,
+  GNUNET_log_from (GNUNET_ERROR_TYPE_ERROR, plugin->name,
                    "NPMC called %s to address `%s'\n",
                    (add_remove == GNUNET_NO) ? "remove" : "add",
                    GNUNET_a2s (addr, addrlen));
 #endif
-  /* convert 'addr' to our internal format */
   switch (add_remove)
   {
   case GNUNET_YES:
-    // FIXME DEBUGGING
-    //if (limit < 1)
       nat_add_address (cls, add_remove, addr, addrlen);
-    //limit++;
-    // FIXME END
     break;
   case GNUNET_NO:
     nat_remove_address (cls, add_remove, addr, addrlen);
index e62c980b45dd92a0600cee5fe9c324e2aca15c91..d5fa4725eec5e60ab2666f4ffef0161b4f590358 100644 (file)
 #include <curl/curl.h>
 
 
-#define DEBUG_HTTP GNUNET_NO
-#define VERBOSE_SERVER GNUNET_NO
-#define VERBOSE_CLIENT GNUNET_NO
-#define VERBOSE_CURL GNUNET_EXTRA_LOGGING
+#define DEBUG_HTTP GNUNET_EXTRA_LOGGING
+#define VERBOSE_SERVER GNUNET_EXTRA_LOGGING
+#define VERBOSE_CLIENT GNUNET_EXTRA_LOGGING
+#define VERBOSE_CURL GNUNET_NO
 
 #if BUILD_HTTPS
 #define LIBGNUNET_PLUGIN_TRANSPORT_INIT libgnunet_plugin_transport_https_init
index 85875e9b26fbb19944911e802f1355c977bc06d9..48707a7300a3a2ffb9c0009068b589f6f1770b29 100644 (file)
@@ -34,7 +34,7 @@ PORT = 12082
 UNIXPATH = /tmp/gnunet-p1-service-peerinfo.sock
 
 [transport]
-DEBUG = YES
+#DEBUG = YES
 PORT = 12081
 PLUGINS = http
 #BINARY = .libs/gnunet-service-transport