Mysql-Connector Logging Messages Appear whenever I close the cursor and connection and can't be suppressed

I tried the following code, did not work:

warnings.filterwarnings("ignore", module="mysql-connector")
logging.getLogger('mysql-connector').disabled = True

I tried multiple iterations such as mysql, MysqlDb, mysql.connector… still not working

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.