Add more information to rwsplit info messages

The statement ID for all binary protocol statements and the error given to
handleError are now logged.
This commit is contained in:
Markus Mäkelä
2019-06-20 13:19:31 +03:00
parent 301b1b63ab
commit 805be70a78
2 changed files with 13 additions and 5 deletions

View File

@ -956,7 +956,7 @@ void RWSplitSession::handleError(GWBUF* errmsgbuf,
if (m_current_master && m_current_master->in_use() && m_current_master == backend)
{
MXS_INFO("Master '%s' failed", backend->name());
MXS_INFO("Master '%s' failed: %s", backend->name(), extract_error(errmsgbuf).c_str());
/** The connection to the master has failed */
if (!backend->is_waiting_result())
@ -1028,7 +1028,7 @@ void RWSplitSession::handleError(GWBUF* errmsgbuf,
}
else
{
MXS_INFO("Slave '%s' failed", backend->name());
MXS_INFO("Slave '%s' failed: %s", backend->name(), extract_error(errmsgbuf).c_str());
if (m_target_node && m_target_node == backend
&& session_trx_is_read_only(problem_dcb->session))
{