DBZ-7693 Reduce logging back to normal

This commit is contained in:
Chris Cranford 2024-03-29 07:44:07 -04:00 committed by Jiri Pechanec
parent 3527fdd320
commit baf7f93d5a

View File

@ -128,12 +128,10 @@ protected Set<TableId> getAllTableIds(RelationalSnapshotContext<P, O> ctx) throw
try {
// MySQL sometimes considers some local files as databases (see DBZ-164),
// so we will simply try each one and ignore the problematic ones ...
LOGGER.info("Showing tables in database {}", quote(dbName));
connection.query("SHOW FULL TABLES IN " + quote(dbName) + " where Table_Type = 'BASE TABLE'", rs -> {
while (rs.next()) {
TableId id = new TableId(dbName, null, rs.getString(1));
tableIds.add(id);
LOGGER.info("\tFound {}", id);
}
});
readableDatabaseNames.add(dbName);