Added user@host message for unexpected query

Added user@host message for unexpected query
This commit is contained in:
MassimilianoPinto
2015-08-10 16:56:21 +02:00
parent 81e4051f9e
commit 3ebdeed7f9

View File

@ -770,7 +770,7 @@ extern char *strcasestr();
query_text = strndup(qtext, query_len);
LOGIF(LE, (skygw_log_write(
LOGFILE_ERROR, "Unexpected query from slave: %s", query_text)));
LOGFILE_ERROR, "Unexpected query from '%s'@'%s': %s", slave->dcb->user, slave->dcb->remote, query_text)));
free(query_text);
blr_slave_send_error(router, slave, "You have an error in your SQL syntax; Check the syntax the MaxScale binlog router accepts.");
return 1;