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:
@ -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)
|
||||
|
Reference in New Issue
Block a user