From c25099da01227a12266003c09230c97098c18e6c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20M=C3=A4kel=C3=A4?= Date: Tue, 22 Sep 2020 16:42:16 +0300 Subject: [PATCH] Improve SSL error message Log the type of the DCB to help figure out where the error came from. --- server/core/dcb.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/core/dcb.cc b/server/core/dcb.cc index 8725f826d..81180b920 100644 --- a/server/core/dcb.cc +++ b/server/core/dcb.cc @@ -828,9 +828,9 @@ static int dcb_log_errors_SSL(DCB* dcb, int ret) } if (ret || ssl_errno) { - MXS_ERROR("SSL operation failed, dcb %p in state " + MXS_ERROR("SSL operation failed, %s in state " "%s fd %d return code %d. More details may follow.", - dcb, + dcb->type(), STRDCBSTATE(dcb->state), dcb->fd, ret);