Skip to content

Commit e8b6562

Browse files
Display log pos inside events dump
1 parent ae8c2b5 commit e8b6562

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pymysqlreplication/event.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ def dump(self):
2525
print("=== %s ===" % (self.__class__.__name__))
2626
print("Date: %s" % (datetime.fromtimestamp(self.timestamp)
2727
.isoformat()))
28+
print("Log position: %d" % self.packet.log_pos)
2829
print("Event size: %d" % (self.event_size))
2930
print("Read bytes: %d" % (self.packet.read_bytes))
3031
self._dump()
@@ -110,4 +111,4 @@ class NotImplementedEvent(BinLogEvent):
110111
def __init__(self, from_packet, event_size, table_map, ctl_connection):
111112
super(NotImplementedEvent, self).__init__(
112113
from_packet, event_size, table_map, ctl_connection)
113-
self.packet.advance(event_size)
114+
self.packet.advance(event_size)

0 commit comments

Comments
 (0)