RED-6224: Fixed log output in tenant datasource cache

This commit is contained in:
deiflaender 2023-04-03 11:53:29 +02:00
parent c674717ebe
commit ed33991438

View File

@ -68,7 +68,7 @@ public class DynamicDataSourceBasedMultiTenantConnectionProvider extends Abstrac
ds.close(); // tear down properly
log.info("Closed datasource: {}", ds.getPoolName());
} else {
log.info("Keeping datasource open from {} because it is still used by {} other tenants", removal.getKey(), numberOfSchemasForSameDataSource - 1);
log.info("Keeping datasource open from {} because it is still used by {} other tenants", removal.getKey(), numberOfSchemasForSameDataSource);
}
})
.build(new CacheLoader<>() {