Include port number when logging successful binding to a TCP port.
Per suggestion from Andres Freund. Discussion: https://postgr.es/m/20170314033842.st7gifec55yigz2h@alap3.anarazel.de
This commit is contained in:
parent
100871c2d1
commit
2b32ac2a59
@ -561,10 +561,17 @@ StreamServerPort(int family, char *hostName, unsigned short portNumber,
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef HAVE_UNIX_SOCKETS
|
||||||
|
if (addr->ai_family == AF_UNIX)
|
||||||
ereport(LOG,
|
ereport(LOG,
|
||||||
/* translator: first %s is IPv4, IPv6, or Unix */
|
(errmsg("listening on Unix socket \"%s\"",
|
||||||
(errmsg("listening on %s address \"%s\"",
|
addrDesc)));
|
||||||
familyDesc, addrDesc)));
|
else
|
||||||
|
#endif
|
||||||
|
ereport(LOG,
|
||||||
|
/* translator: first %s is IPv4 or IPv6 */
|
||||||
|
(errmsg("listening on %s address \"%s\", port %d",
|
||||||
|
familyDesc, addrDesc, (int) portNumber)));
|
||||||
|
|
||||||
ListenSocket[listen_index] = fd;
|
ListenSocket[listen_index] = fd;
|
||||||
added++;
|
added++;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user