gnunet-svn
[Top][All Lists]
Advanced

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

[gnunet] branch master updated: -remove excessive logging, even for debu


From: gnunet
Subject: [gnunet] branch master updated: -remove excessive logging, even for debug-level, by default
Date: Tue, 01 Nov 2022 12:20:27 +0100

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

grothoff pushed a commit to branch master
in repository gnunet.

The following commit(s) were added to refs/heads/master by this push:
     new cba4330cd -remove excessive logging, even for debug-level, by default
cba4330cd is described below

commit cba4330cde1b0aafeb21ec467078357fd535af5f
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Tue Nov 1 12:20:20 2022 +0100

    -remove excessive logging, even for debug-level, by default
---
 contrib/gana    | 2 +-
 contrib/sphinx  | 2 +-
 src/curl/curl.c | 6 ++++++
 3 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/contrib/gana b/contrib/gana
index fc4d4453e..9cdf68e03 160000
--- a/contrib/gana
+++ b/contrib/gana
@@ -1 +1 @@
-Subproject commit fc4d4453e423aa5545275ebd5cb4a2652b1c4e8f
+Subproject commit 9cdf68e03b5f947add17fe2c77768830b8c24f66
diff --git a/contrib/sphinx b/contrib/sphinx
index 84cb6aaaa..5f853d253 160000
--- a/contrib/sphinx
+++ b/contrib/sphinx
@@ -1 +1 @@
-Subproject commit 84cb6aaaaebe9b79d5453a8444ee95459c8f5029
+Subproject commit 5f853d253daa5bc700b549fd40e4086aee1058b8
diff --git a/src/curl/curl.c b/src/curl/curl.c
index d262f487c..b21153980 100644
--- a/src/curl/curl.c
+++ b/src/curl/curl.c
@@ -32,6 +32,10 @@
 #include "../util/benchmark.h"
 #endif
 
+/**
+ * Set to 1 for extra debug logging.
+ */
+#define DEBUG 0
 
 /**
  * Log error related to CURL operations.
@@ -644,10 +648,12 @@ GNUNET_CURL_download_get_result_ (struct 
GNUNET_CURL_DownloadBuffer *db,
   json_error_t error;
   char *ct;
 
+#if DEBUG
   GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
               "Downloaded body: %.*s\n",
               (int) db->buf_size,
               (char *) db->buf);
+#endif
   if (CURLE_OK !=
       curl_easy_getinfo (eh,
                          CURLINFO_RESPONSE_CODE,

-- 
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]