diqiu50 commented on code in PR #9493:
URL: https://github.com/apache/gravitino/pull/9493#discussion_r2641730765


##########
trino-connector/trino-connector/src/main/java/org/apache/gravitino/trino/connector/catalog/CatalogConnectorManager.java:
##########
@@ -415,4 +416,21 @@ public void loadMetalakeSync() throws Exception {
   public GravitinoMetalake getMetalake(String metalake) {
     return metalakes.computeIfAbsent(metalake, this::retrieveMetalake);
   }
+
+  /**
+   * Whether skip loading catalog or not
+   *
+   * @param catalogName catalog name
+   * @return whether skip loading catalog or not
+   */
+  public boolean skipCatalog(String catalogName) {
+    for (Pattern pattern : config.getSkipCatalogPatterns()) {
+      if (pattern.matcher(catalogName).matches()) {
+        LOG.warn(
+            "Skip catalog {} with config 
`gravitino.trino.skip-catalog-patterns`.", catalogName);

Review Comment:
   Change the log level to DEBUG to avoid too many logs here.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to