From 9c6cc713c8d46c18d8e6705708166a0648fc4938 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20M=C3=A4kel=C3=A4?= Date: Mon, 25 Jun 2018 15:06:28 +0300 Subject: [PATCH] Remove unnecessary session command logging All executed session commands were logged in the RWSplitSession destructor. This is not really necessary and shouldn't have been placed there in the first place. --- .../routing/readwritesplit/rwsplitsession.cc | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/server/modules/routing/readwritesplit/rwsplitsession.cc b/server/modules/routing/readwritesplit/rwsplitsession.cc index 98a966bf9..b755fdcd2 100644 --- a/server/modules/routing/readwritesplit/rwsplitsession.cc +++ b/server/modules/routing/readwritesplit/rwsplitsession.cc @@ -97,22 +97,6 @@ void RWSplitSession::close() { close_all_connections(m_backends); m_current_query.reset(); - - if (MXS_LOG_PRIORITY_IS_ENABLED(LOG_INFO) && - m_sescmd_list.size()) - { - std::string sescmdstr; - - for (mxs::SessionCommandList::iterator it = m_sescmd_list.begin(); - it != m_sescmd_list.end(); it++) - { - mxs::SSessionCommand& scmd = *it; - sescmdstr += scmd->to_string(); - sescmdstr += "\n"; - } - - MXS_INFO("Executed session commands:\n%s", sescmdstr.c_str()); - } } int32_t RWSplitSession::routeQuery(GWBUF* querybuf)