[Pkg-gnupg-commit] [gnupg2] 111/185: dirmngr: Log http response in debug mode.

Daniel Kahn Gillmor dkg at fifthhorseman.net
Mon Aug 7 11:55:26 UTC 2017


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

dkg pushed a commit to branch experimental
in repository gnupg2.

commit e7eabe66b6409c1f5225b751ea5c2d456a3856e6
Author: Justus Winter <justus at g10code.com>
Date:   Wed Jul 19 11:10:26 2017 +0200

    dirmngr: Log http response in debug mode.
    
    * dirmngr/http.c (parse_response): Log http response in debug mode.
    
    Signed-off-by: Justus Winter <justus at g10code.com>
---
 dirmngr/http.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dirmngr/http.c b/dirmngr/http.c
index 29854b5..25368bb 100644
--- a/dirmngr/http.c
+++ b/dirmngr/http.c
@@ -2344,7 +2344,7 @@ parse_response (http_t hd)
       if (!len)
 	return GPG_ERR_EOF;
 
-      if ((hd->flags & HTTP_FLAG_LOG_RESP))
+      if (opt_debug || (hd->flags & HTTP_FLAG_LOG_RESP))
         log_debug_with_string (line, "http.c:response:\n");
     }
   while (!*line);
@@ -2389,7 +2389,7 @@ parse_response (http_t hd)
       /* Trim line endings of empty lines. */
       if ((*line == '\r' && line[1] == '\n') || *line == '\n')
 	*line = 0;
-      if ((hd->flags & HTTP_FLAG_LOG_RESP))
+      if (opt_debug || (hd->flags & HTTP_FLAG_LOG_RESP))
         log_info ("http.c:RESP: '%.*s'\n",
                   (int)strlen(line)-(*line&&line[1]?2:0),line);
       if (*line)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-gnupg/gnupg2.git



More information about the Pkg-gnupg-commit mailing list