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.
This commit is contained in:
Markus Mäkelä
2018-06-25 15:06:28 +03:00
parent 8cf22dbb56
commit 9c6cc713c8

View File

@ -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)