[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r10313 - gnunet/src/transport
From: |
gnunet |
Subject: |
[GNUnet-SVN] r10313 - gnunet/src/transport |
Date: |
Mon, 15 Feb 2010 22:39:38 +0100 |
Author: grothoff
Date: 2010-02-15 22:39:38 +0100 (Mon, 15 Feb 2010)
New Revision: 10313
Modified:
gnunet/src/transport/gnunet-service-transport.c
gnunet/src/transport/plugin_transport_tcp.c
gnunet/src/transport/transport.h
Log:
reduce debug logging
Modified: gnunet/src/transport/gnunet-service-transport.c
===================================================================
--- gnunet/src/transport/gnunet-service-transport.c 2010-02-15 21:38:52 UTC
(rev 10312)
+++ gnunet/src/transport/gnunet-service-transport.c 2010-02-15 21:39:38 UTC
(rev 10313)
@@ -1763,7 +1763,9 @@
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));
@@ -1780,7 +1782,7 @@
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",
Modified: gnunet/src/transport/plugin_transport_tcp.c
===================================================================
--- gnunet/src/transport/plugin_transport_tcp.c 2010-02-15 21:38:52 UTC (rev
10312)
+++ gnunet/src/transport/plugin_transport_tcp.c 2010-02-15 21:39:38 UTC (rev
10313)
@@ -39,7 +39,7 @@
#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?
@@ -522,7 +522,7 @@
#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;
Modified: gnunet/src/transport/transport.h
===================================================================
--- gnunet/src/transport/transport.h 2010-02-15 21:38:52 UTC (rev 10312)
+++ gnunet/src/transport/transport.h 2010-02-15 21:39:38 UTC (rev 10313)
@@ -30,7 +30,7 @@
#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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r10313 - gnunet/src/transport,
gnunet <=