twingly / ecco

:dolphin: MySQL replication binlog parser in JRuby

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Extend on_save_position with information about the event

dentarg opened this issue · comments

At https://github.com/twingly/ecco/blob/v0.6.1/lib/ecco/save_event_listener.rb#L28 we only pass on filename and position. I think it would make sense to give more information to the user, in some cases it might be useful to know what type of event occurred (if only for easier debugging in your application using ecco).