Add more error messages to monitors
When the execution of a query fails, the error reported by the Connector-C and the server where the query was executed is logged.
This commit is contained in:
@ -1430,6 +1430,14 @@ void mon_hangup_failed_servers(MXS_MONITOR *monitor)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void mon_report_query_error(MXS_MONITOR_SERVERS* db)
|
||||
{
|
||||
MXS_ERROR("Failed to execute query on server '%s' ([%s]:%d): %s",
|
||||
db->server->unique_name, db->server->name,
|
||||
db->server->port, mysql_error(db->con));
|
||||
}
|
||||
|
||||
/**
|
||||
* Acquire locks on all servers monitored by this monitor. There should
|
||||
* only be max 1 monitor per server.
|
||||
|
||||
Reference in New Issue
Block a user