diff options
author | Christian Grothoff <christian@grothoff.org> | 2010-02-15 21:39:38 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2010-02-15 21:39:38 +0000 |
commit | ff752ca3069dbdd6b13252bb1d40ed2acc4f85e9 (patch) | |
tree | 3785143ec6a199ade2fb16c298204cf92bcbb78f /src | |
parent | 939198470940ea81b9cbc9812316cc5d2272af27 (diff) | |
download | gnunet-ff752ca3069dbdd6b13252bb1d40ed2acc4f85e9.tar.gz gnunet-ff752ca3069dbdd6b13252bb1d40ed2acc4f85e9.zip |
reduce debug logging
Diffstat (limited to 'src')
-rw-r--r-- | src/transport/gnunet-service-transport.c | 6 | ||||
-rw-r--r-- | src/transport/plugin_transport_tcp.c | 4 | ||||
-rw-r--r-- | src/transport/transport.h | 2 |
3 files changed, 7 insertions, 5 deletions
diff --git a/src/transport/gnunet-service-transport.c b/src/transport/gnunet-service-transport.c index 70144e8c1..b7848be40 100644 --- a/src/transport/gnunet-service-transport.c +++ b/src/transport/gnunet-service-transport.c | |||
@@ -1763,7 +1763,9 @@ handle_pong (void *cls, const struct GNUNET_MessageHeader *message, | |||
1763 | const char *sender_address, | 1763 | const char *sender_address, |
1764 | size_t sender_address_len) | 1764 | size_t sender_address_len) |
1765 | { | 1765 | { |
1766 | #if DEBUG_TRANSPORT | 1766 | #if DEBUG_TRANSPORT > 1 |
1767 | /* we get tons of these that just get discarded, only log | ||
1768 | if we are quite verbose */ | ||
1767 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 1769 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
1768 | "Receiving `%s' message from `%4s'.\n", "PONG", | 1770 | "Receiving `%s' message from `%4s'.\n", "PONG", |
1769 | GNUNET_i2s (peer)); | 1771 | GNUNET_i2s (peer)); |
@@ -1780,7 +1782,7 @@ handle_pong (void *cls, const struct GNUNET_MessageHeader *message, | |||
1780 | per PING, and all but the first PONG will end up | 1782 | per PING, and all but the first PONG will end up |
1781 | here. So really we should not print anything here | 1783 | here. So really we should not print anything here |
1782 | unless we want to be very, very verbose... */ | 1784 | unless we want to be very, very verbose... */ |
1783 | #if DEBUG_TRANSPORT > 1 | 1785 | #if DEBUG_TRANSPORT > 2 |
1784 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 1786 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
1785 | "Received `%s' message from `%4s' but have no record of a matching `%s' message. Ignoring.\n", | 1787 | "Received `%s' message from `%4s' but have no record of a matching `%s' message. Ignoring.\n", |
1786 | "PONG", | 1788 | "PONG", |
diff --git a/src/transport/plugin_transport_tcp.c b/src/transport/plugin_transport_tcp.c index ee7641d39..05a7c2eb0 100644 --- a/src/transport/plugin_transport_tcp.c +++ b/src/transport/plugin_transport_tcp.c | |||
@@ -39,7 +39,7 @@ | |||
39 | #include "plugin_transport.h" | 39 | #include "plugin_transport.h" |
40 | #include "transport.h" | 40 | #include "transport.h" |
41 | 41 | ||
42 | #define DEBUG_TCP GNUNET_YES | 42 | #define DEBUG_TCP GNUNET_NO |
43 | 43 | ||
44 | /** | 44 | /** |
45 | * How long until we give up on transmitting the welcome message? | 45 | * How long until we give up on transmitting the welcome message? |
@@ -522,7 +522,7 @@ disconnect_session (struct Session *session) | |||
522 | #if DEBUG_TCP | 522 | #if DEBUG_TCP |
523 | GNUNET_log_from (GNUNET_ERROR_TYPE_DEBUG, | 523 | GNUNET_log_from (GNUNET_ERROR_TYPE_DEBUG, |
524 | "tcp", | 524 | "tcp", |
525 | "Notifying transport service about loss of data connection with `%4s'.\n", | 525 | "Notifying transport service about loss of connection with `%4s'.\n", |
526 | GNUNET_i2s (&session->target)); | 526 | GNUNET_i2s (&session->target)); |
527 | #endif | 527 | #endif |
528 | /* Data session that actually went past the initial handshake; | 528 | /* Data session that actually went past the initial handshake; |
diff --git a/src/transport/transport.h b/src/transport/transport.h index 603f1bbc1..89f004ab8 100644 --- a/src/transport/transport.h +++ b/src/transport/transport.h | |||
@@ -30,7 +30,7 @@ | |||
30 | #include "gnunet_time_lib.h" | 30 | #include "gnunet_time_lib.h" |
31 | #include "gnunet_transport_service.h" | 31 | #include "gnunet_transport_service.h" |
32 | 32 | ||
33 | #define DEBUG_TRANSPORT GNUNET_YES | 33 | #define DEBUG_TRANSPORT GNUNET_NO |
34 | 34 | ||
35 | /** | 35 | /** |
36 | * For how long do we allow unused bandwidth | 36 | * For how long do we allow unused bandwidth |