reduce debug logging
authorChristian Grothoff <christian@grothoff.org>
Mon, 15 Feb 2010 21:39:38 +0000 (21:39 +0000)
committerChristian Grothoff <christian@grothoff.org>
Mon, 15 Feb 2010 21:39:38 +0000 (21:39 +0000)
src/transport/gnunet-service-transport.c
src/transport/plugin_transport_tcp.c
src/transport/transport.h

index 70144e8c1f07815d138f19c53a1c863ef45d94b3..b7848be4087a6d38d031cd5cbfd7de08dcf0d9b9 100644 (file)
@@ -1763,7 +1763,9 @@ handle_pong (void *cls, const struct GNUNET_MessageHeader *message,
              const char *sender_address,
              size_t sender_address_len)
 {
              const char *sender_address,
              size_t sender_address_len)
 {
-#if DEBUG_TRANSPORT
+#if DEBUG_TRANSPORT > 1
+  /* we get tons of these that just get discarded, only log
+     if we are quite verbose */
   GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
              "Receiving `%s' message from `%4s'.\n", "PONG",
              GNUNET_i2s (peer));
   GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
              "Receiving `%s' message from `%4s'.\n", "PONG",
              GNUNET_i2s (peer));
@@ -1780,7 +1782,7 @@ handle_pong (void *cls, const struct GNUNET_MessageHeader *message,
         per PING, and all but the first PONG will end up
         here. So really we should not print anything here
         unless we want to be very, very verbose... */
         per PING, and all but the first PONG will end up
         here. So really we should not print anything here
         unless we want to be very, very verbose... */
-#if DEBUG_TRANSPORT > 1
+#if DEBUG_TRANSPORT > 2
       GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
                   "Received `%s' message from `%4s' but have no record of a matching `%s' message. Ignoring.\n",
                   "PONG",
       GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
                   "Received `%s' message from `%4s' but have no record of a matching `%s' message. Ignoring.\n",
                   "PONG",
index ee7641d39e0028d2d8f56a9134925e7ab56d6214..05a7c2eb06e200009c8863a811245c626dec398b 100644 (file)
@@ -39,7 +39,7 @@
 #include "plugin_transport.h"
 #include "transport.h"
 
 #include "plugin_transport.h"
 #include "transport.h"
 
-#define DEBUG_TCP GNUNET_YES
+#define DEBUG_TCP GNUNET_NO
 
 /**
  * How long until we give up on transmitting the welcome message?
 
 /**
  * How long until we give up on transmitting the welcome message?
@@ -522,7 +522,7 @@ disconnect_session (struct Session *session)
 #if DEBUG_TCP
       GNUNET_log_from (GNUNET_ERROR_TYPE_DEBUG,
                        "tcp",
 #if DEBUG_TCP
       GNUNET_log_from (GNUNET_ERROR_TYPE_DEBUG,
                        "tcp",
-                       "Notifying transport service about loss of data connection with `%4s'.\n",
+                       "Notifying transport service about loss of connection with `%4s'.\n",
                        GNUNET_i2s (&session->target));
 #endif
       /* Data session that actually went past the initial handshake;
                        GNUNET_i2s (&session->target));
 #endif
       /* Data session that actually went past the initial handshake;
index 603f1bbc1e5d4e9c223175c3f253ba254d981c85..89f004ab810d99d22c0c3cada7d66050320fe15d 100644 (file)
@@ -30,7 +30,7 @@
 #include "gnunet_time_lib.h"
 #include "gnunet_transport_service.h"
 
 #include "gnunet_time_lib.h"
 #include "gnunet_transport_service.h"
 
-#define DEBUG_TRANSPORT GNUNET_YES
+#define DEBUG_TRANSPORT GNUNET_NO
 
 /**
  * For how long do we allow unused bandwidth
 
 /**
  * For how long do we allow unused bandwidth