Consistently log strerror output as DETAIL

This commit is contained in:
Ian Barwick
2019-01-29 12:10:55 +09:00
parent e5f50e7b99
commit a48d408e4e
4 changed files with 14 additions and 11 deletions

View File

@@ -4376,9 +4376,8 @@ wait_connection_availability(PGconn *conn, long long timeout)
gettimeofday(&before, &tz);
if (select(sock, &read_set, NULL, NULL, &tmout) == -1)
{
log_warning(
_("wait_connection_availability(): select() returned with error:\n %s"),
strerror(errno));
log_warning(_("wait_connection_availability(): select() returned with error"));
log_detail("%s", strerror(errno));
return -1;
}