Add hostname to lookup error message

This should help detect what is the hostname that causes the problem.
This commit is contained in:
Markus Mäkelä 2017-12-20 11:52:36 +02:00
parent ec1a37000b
commit 2008d08cfc

View File

@ -700,8 +700,8 @@ static bool get_hostname(DCB *dcb, char *client_hostname, size_t size)
if (lookup_result != 0)
{
MXS_ERROR("Client hostname lookup failed, getnameinfo() returned: '%s'.",
gai_strerror(lookup_result));
MXS_ERROR("Client hostname lookup failed for '%s', getnameinfo() returned: '%s'.",
dcb->remote, gai_strerror(lookup_result));
}
else
{