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