Skip to content

Commit

Permalink
fix log statement for fetchone
Browse files Browse the repository at this point in the history
  • Loading branch information
bentsku committed Feb 7, 2024
1 parent 00364de commit 317cdd3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pymysqlreplication/binlogstream.py
Original file line number Diff line number Diff line change
Expand Up @@ -599,7 +599,8 @@ def fetchone(self):
if code in MYSQL_EXPECTED_ERROR_CODES:
self._stream_connection.close()
self.__connected_stream = False
logging.WARN(
logging.log(
logging.WARN,
"""
A pymysql.OperationalError error occurred, Re-request the connection.
"""
Expand Down

0 comments on commit 317cdd3

Please sign in to comment.