Skip to content

Commit 2d91314

Browse files
authored
Disabled unused warnings (#86)
1 parent 752aea1 commit 2d91314

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

mysql_ch_replicator/pymysqlreplication/binlogstream.py

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ def __connect_to_ctl(self):
310310
self._ctl_connection = self.pymysql_wrapper(**self._ctl_connection_settings)
311311
self._ctl_connection._get_dbms = self.__get_dbms
312312
self.__connected_ctl = True
313-
self.__check_optional_meta_data()
313+
#self.__check_optional_meta_data()
314314

315315
def __checksum_enabled(self):
316316
"""Return True if binlog-checksum = CRC32. Only for MySQL > 5.6"""
@@ -563,12 +563,13 @@ def __check_optional_meta_data(self):
563563
cur.execute("SHOW VARIABLES LIKE 'BINLOG_ROW_METADATA';")
564564
value = cur.fetchone()
565565
if value is None: # BinLog Variable Not exist It means Not Supported Version
566-
logging.log(
567-
logging.WARN,
568-
"""
569-
Before using MARIADB 10.5.0 and MYSQL 8.0.14 versions,
570-
use python-mysql-replication version Before 1.0 version """,
571-
)
566+
pass
567+
# logging.log(
568+
# logging.WARN,
569+
# """
570+
# Before using MARIADB 10.5.0 and MYSQL 8.0.14 versions,
571+
# use python-mysql-replication version Before 1.0 version """,
572+
# )
572573
else:
573574
value = value.get("Value", "")
574575
if value.upper() != "FULL":

0 commit comments

Comments
 (0)