aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--NEWS2
-rw-r--r--socket.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index ff107336..ae074d55 100644
--- a/NEWS
+++ b/NEWS
@@ -96,6 +96,8 @@ fetchmail 6.3.5 (not yet released):
with new polls, and SIGHUP would be ignored for root users. SIGHUP now matches
documented behavior. SIGUSR1 has always been a wakeup signal for both root
(undocumented) and non-root users. See also the deprecation warning above.
+* When a connection fails, log not only the IP address, but also host and
+ service name.
# CHANGES:
* Rename all fetchmail-internal lock_* functions to fm_lock_*. Obsoletes
diff --git a/socket.c b/socket.c
index f882281d..3cf84844 100644
--- a/socket.c
+++ b/socket.c
@@ -321,7 +321,7 @@ int SockOpen(const char *host, const char *service,
if (outlevel >= O_VERBOSE)
report_complete(stdout, GT_("connection failed.\n"));
if (outlevel > O_SILENT)
- report(stderr, GT_("connection to %s failed: %s.\n"), buf, strerror(e));
+ report(stderr, GT_("connection to %s:%s [%s] failed: %s.\n"), host, service, buf, strerror(e));
fm_close(i);
i = -1;
continue;