Log DCB remote on SSL error

This should help identify the client which caused the error to occur.
This commit is contained in:
Markus Mäkelä
2021-10-05 13:12:49 +03:00
parent b4edc74926
commit 136d0271df

View File

@ -828,9 +828,10 @@ static int dcb_log_errors_SSL(DCB* dcb, int ret)
} }
if (ret || ssl_errno) if (ret || ssl_errno)
{ {
MXS_ERROR("SSL operation failed, %s in state " MXS_ERROR("SSL operation failed, %s at '%s' in state "
"%s fd %d return code %d. More details may follow.", "%s fd %d return code %d. More details may follow.",
dcb->type(), dcb->type(),
dcb->remote ? dcb->remote : "<no remote>",
STRDCBSTATE(dcb->state), STRDCBSTATE(dcb->state),
dcb->fd, dcb->fd,
ret); ret);