Add verbose backend status helper

This allows the same verbose information to be logged in the cases where
it is of use. Mostly this information can be used to figure out why a
certain session was closed.
This commit is contained in:
Markus Mäkelä
2019-09-19 13:22:58 +03:00
parent fd0c156655
commit f46f873dc1
3 changed files with 17 additions and 10 deletions

View File

@ -1182,6 +1182,7 @@ bool RWSplitSession::handle_error_new_connection(DCB* backend_dcb, GWBUF* errmsg
MXS_ERROR("Unable to continue session as all connections have failed and "
"new connections cannot be created. Last server to fail was '%s'.",
backend->name());
MXS_INFO("Connection status: %s", get_verbose_status().c_str());
}
return ok;