gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnunet] branch master updated: TNG: Removed debug log statements not co


From: gnunet
Subject: [gnunet] branch master updated: TNG: Removed debug log statements not controlled by the global logging mechanism.
Date: Wed, 08 Feb 2023 11:20:49 +0100

This is an automated email from the git hooks/post-receive script.

t3sserakt pushed a commit to branch master
in repository gnunet.

The following commit(s) were added to refs/heads/master by this push:
     new be0909d95 TNG: Removed debug log statements not controlled by the 
global logging mechanism.
be0909d95 is described below

commit be0909d95bc5fa961b91223729b9858a864e3f61
Author: t3sserakt <t3ss@posteo.de>
AuthorDate: Wed Feb 8 10:29:27 2023 +0100

    TNG: Removed debug log statements not controlled by the global logging 
mechanism.
---
 src/transport/gnunet-communicator-tcp.c          | 28 ++++++------------------
 src/transport/test_transport_start_with_config.c |  2 +-
 2 files changed, 8 insertions(+), 22 deletions(-)

diff --git a/src/transport/gnunet-communicator-tcp.c 
b/src/transport/gnunet-communicator-tcp.c
index 86b98cee1..7d4360bb0 100644
--- a/src/transport/gnunet-communicator-tcp.c
+++ b/src/transport/gnunet-communicator-tcp.c
@@ -1518,9 +1518,8 @@ send_challenge (struct GNUNET_CRYPTO_ChallengeNonceP 
challenge,
   struct TCPConfirmationAck tca;
   struct TcpHandshakeAckSignature thas;
 
-  GNUNET_log_from_nocheck (GNUNET_ERROR_TYPE_DEBUG,
-                           "transport",
-                           "sending challenge\n");
+  GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
+             "sending challenge\n");
 
   tca.header.type = ntohs (
     GNUNET_MESSAGE_TYPE_COMMUNICATOR_TCP_CONFIRMATION_ACK);
@@ -1546,9 +1545,8 @@ send_challenge (struct GNUNET_CRYPTO_ChallengeNonceP 
challenge,
                                       &tca,
                                       sizeof(tca)));
   queue->cwrite_off += sizeof(tca);
-  GNUNET_log_from_nocheck (GNUNET_ERROR_TYPE_DEBUG,
-                           "transport",
-                           "sending challenge done\n");
+  GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
+               "sending challenge done\n");
 }
 
 
@@ -2111,9 +2109,6 @@ queue_read (void *cls)
                                      BUF_SIZE - queue->cread_off);
   GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
               "Received %zd bytes from TCP queue\n", rcvd);
-  GNUNET_log_from_nocheck (GNUNET_ERROR_TYPE_DEBUG,
-                           "transport",
-                           "Received %zd bytes from TCP queue\n", rcvd);
   if (-1 == rcvd)
   {
     if ((EAGAIN != errno) && (EINTR != errno))
@@ -2695,9 +2690,8 @@ transmit_kx (struct Queue *queue,
   queue->challenge = tc.challenge;
   queue->cwrite_off += sizeof(tc);
 
-  GNUNET_log_from_nocheck (GNUNET_ERROR_TYPE_DEBUG,
-                           "transport",
-                           "handshake written\n");
+  GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
+             "handshake written\n");
 }
 
 
@@ -2882,10 +2876,6 @@ queue_read_kx (void *cls)
   GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
               "Received %lu bytes for KX\n",
               rcvd);
-  GNUNET_log_from_nocheck (GNUNET_ERROR_TYPE_DEBUG,
-                           "transport",
-                           "Received %lu bytes for KX\n",
-                           rcvd);
   if (-1 == rcvd)
   {
     if ((EAGAIN != errno) && (EINTR != errno))
@@ -2979,9 +2969,6 @@ proto_read_kx (void *cls)
                                      sizeof(pq->ibuf) - pq->ibuf_off);
   GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
               "Proto received %lu bytes for KX\n", rcvd);
-  GNUNET_log_from_nocheck (GNUNET_ERROR_TYPE_DEBUG,
-                           "transport",
-                           "Proto received %lu bytes for KX\n", rcvd);
   if (-1 == rcvd)
   {
     if ((EAGAIN != errno) && (EINTR != errno))
@@ -4048,8 +4035,7 @@ main (int argc, char *const *argv)
   };
   int ret;
 
-  GNUNET_log_from_nocheck (GNUNET_ERROR_TYPE_DEBUG,
-                           "transport",
+  GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
                            "Starting tcp communicator\n");
   if (GNUNET_OK !=
       GNUNET_STRINGS_get_utf8_args (argc, argv,
diff --git a/src/transport/test_transport_start_with_config.c 
b/src/transport/test_transport_start_with_config.c
index c4b6c55ad..8a7a3dbb5 100644
--- a/src/transport/test_transport_start_with_config.c
+++ b/src/transport/test_transport_start_with_config.c
@@ -47,7 +47,7 @@ main (int argc,
   size_t data_len;
 
   GNUNET_log_setup ("test-netjail",
-                    "DEBUG",
+                    "INFO",
                     NULL);
 
   if (0 == strcmp ("-s", argv[1]))

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]