]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-http: server: Remove redundant debug logging checks.
authorStephan Bosch <stephan.bosch@dovecot.fi>
Fri, 8 Nov 2019 16:11:32 +0000 (17:11 +0100)
committermartti.rannanjarvi <martti.rannanjarvi@open-xchange.com>
Sat, 18 Apr 2020 14:55:11 +0000 (14:55 +0000)
src/lib-http/http-server-connection.c
src/lib-http/http-server-request.c
src/lib-http/http-server-response.c

index ec394495cb03d17c690f62f0b03354f74ca28387..4982a4ee08de6f4649a0d43b0620b646a0eaec64 100644 (file)
@@ -41,11 +41,9 @@ http_server_connection_debug(struct http_server_connection *conn,
 {
        va_list args;
 
-       if (conn->server->set.debug) {
-               va_start(args, format);
-               e_debug(conn->event, "%s", t_strdup_vprintf(format, args));
-               va_end(args);
-       }
+       va_start(args, format);
+       e_debug(conn->event, "%s", t_strdup_vprintf(format, args));
+       va_end(args);
 }
 
 static inline void
@@ -420,8 +418,7 @@ http_server_connection_ssl_init(struct http_server_connection *conn)
                return -1;
        }
 
-       if (server->set.debug)
-               http_server_connection_debug(conn, "Starting SSL handshake");
+       http_server_connection_debug(conn, "Starting SSL handshake");
 
        http_server_connection_input_halt(conn);
        if (server->ssl_ctx == NULL) {
index 75d59bd2eef798f843c33d920772ed930c838cc0..baa3a18f8cddc5f2a72bcb604e0ca79d1965e5b7 100644 (file)
@@ -19,14 +19,11 @@ static inline void
 http_server_request_debug(struct http_server_request *req,
                          const char *format, ...)
 {
-       struct http_server *server = req->server;
        va_list args;
 
-       if (server->set.debug) {
-               va_start(args, format);
-               e_debug(req->event, "%s", t_strdup_vprintf(format, args));
-               va_end(args);
-       }
+       va_start(args, format);
+       e_debug(req->event, "%s", t_strdup_vprintf(format, args));
+       va_end(args);
 }
 
 static inline void
index cfe9740d29469feabd81258e7f29c01ff883a508..f77ef30f99c4b5dde966193e966f595ce3bc7270 100644 (file)
@@ -30,11 +30,9 @@ http_server_response_debug(struct http_server_response *resp,
 {
        va_list args;
 
-       if (resp->request->server->set.debug) {
-               va_start(args, format);
-               e_debug(resp->event, "%s", t_strdup_vprintf(format, args));
-               va_end(args);
-       }
+       va_start(args, format);
+       e_debug(resp->event, "%s", t_strdup_vprintf(format, args));
+       va_end(args);
 }
 
 static inline void