From 126ba46de715400250328df555c7ab5687404e41 Mon Sep 17 00:00:00 2001 From: Matthias Andree Date: Tue, 1 Aug 2006 00:04:54 +0000 Subject: When connect()ing fails, log host and service as well. svn path=/branches/BRANCH_6-3/; revision=4873 --- NEWS | 2 ++ socket.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) 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; -- cgit v1.2.3