Skip to content

Commit d5108ee

Browse files
authored
Add Logging when fake rotate event occured (#490)
1 parent 08219f7 commit d5108ee

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

pymysqlreplication/row_event.py

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import logging
12
import struct
23
import decimal
34
import datetime
@@ -33,6 +34,12 @@ def __init__(self, from_packet, event_size, table_map, ctl_connection, **kwargs)
3334
self.table = self.table_map[self.table_id].table
3435
except KeyError: # If we have filter the corresponding TableMap Event
3536
self._processed = False
37+
logging.log(
38+
logging.WARN,
39+
"""
40+
A pymysql.OperationalError error occurred, causing a fake rotate event and initialization of the table_map
41+
""",
42+
)
3643
return
3744

3845
if self.__only_tables is not None and self.table not in self.__only_tables:

0 commit comments

Comments
 (0)