]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-http: http-client-host - Log debug message for failed DNS lookup.
authorStephan Bosch <stephan.bosch@open-xchange.com>
Wed, 23 Sep 2020 00:04:20 +0000 (02:04 +0200)
committertimo.sirainen <timo.sirainen@open-xchange.com>
Wed, 7 Oct 2020 11:42:11 +0000 (11:42 +0000)
If the host has no requests, nothing is logged about the failure otherwise.

src/lib-http/http-client-host.c

index 7fd07956a8e817c3aea0cad31fed514eb5b0d072..4d3af70606fd89129193f163582682628bc916fe 100644 (file)
@@ -75,6 +75,8 @@ http_client_host_shared_lookup_failure(struct http_client_host_shared *hshared,
 {
        struct http_client_host *host;
 
+       e_debug(hshared->event, "DNS lookup failed: %s", error);
+
        error = t_strdup_printf("Failed to lookup host %s: %s",
                                hshared->name, error);