elaborate error message on applying event data: printing out the error, query and args

This commit is contained in:
Shlomi Noach 2016-08-17 06:50:40 +02:00
parent 7a0e2cfe3f
commit 4c8edf6372

View File

@ -862,6 +862,7 @@ func (this *Applier) ApplyDMLEventQuery(dmlEvent *binlog.BinlogDMLEvent) error {
} }
if err != nil { if err != nil {
err = fmt.Errorf("%s; query=%s; args=%+v", err.Error(), query, args) err = fmt.Errorf("%s; query=%s; args=%+v", err.Error(), query, args)
log.Errore(err)
} }
return err return err
} }