From 016a6a6bd29dc698d78b0f04196f78d56442c6e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20M=C3=A4kel=C3=A4?= Date: Sun, 25 Feb 2018 18:59:37 +0200 Subject: [PATCH] Add more info output to readwritesplit replies When readwritesplit receives a reply from a backend, an info level log message is now logged. This allows easier debugging of situations where replies aren't properly returned by the router. --- server/modules/routing/readwritesplit/readwritesplit.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/server/modules/routing/readwritesplit/readwritesplit.cc b/server/modules/routing/readwritesplit/readwritesplit.cc index c45f86b8e..e20ecf146 100644 --- a/server/modules/routing/readwritesplit/readwritesplit.cc +++ b/server/modules/routing/readwritesplit/readwritesplit.cc @@ -1174,10 +1174,12 @@ static void clientReply(MXS_ROUTER *instance, rses->expected_responses--; ss_dassert(rses->expected_responses >= 0); ss_dassert(backend->get_reply_state() == REPLY_STATE_DONE); + MXS_INFO("Reply complete, last reply from %s", backend->name()); } else { - MXS_DEBUG("Reply not yet complete, waiting for %d replies", rses->expected_responses); + MXS_INFO("Reply not yet complete. Waiting for %d replies, got one from %s", + rses->expected_responses, backend->name()); } /**