Skip to content

Commit 317cdd3

Browse files
committed
fix log statement for fetchone
1 parent 00364de commit 317cdd3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pymysqlreplication/binlogstream.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -599,7 +599,8 @@ def fetchone(self):
599599
if code in MYSQL_EXPECTED_ERROR_CODES:
600600
self._stream_connection.close()
601601
self.__connected_stream = False
602-
logging.WARN(
602+
logging.log(
603+
logging.WARN,
603604
"""
604605
A pymysql.OperationalError error occurred, Re-request the connection.
605606
"""

0 commit comments

Comments
 (0)