From 63085a2ebca4645170297e2d2535a061ef4ad938 Mon Sep 17 00:00:00 2001 From: Raymond Zhang Date: Mon, 2 Dec 2024 16:07:42 -0800 Subject: [PATCH] Resolve LoggerInterpolationConsumesThrowable issue in HadoopCatalog --- .../main/java/org/apache/iceberg/hadoop/HadoopCatalog.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/main/java/org/apache/iceberg/hadoop/HadoopCatalog.java b/core/src/main/java/org/apache/iceberg/hadoop/HadoopCatalog.java index dd542a8af..25e6994d0 100644 --- a/core/src/main/java/org/apache/iceberg/hadoop/HadoopCatalog.java +++ b/core/src/main/java/org/apache/iceberg/hadoop/HadoopCatalog.java @@ -162,7 +162,7 @@ private boolean isTableDir(Path path) { return false; } catch (IOException e) { if (shouldSuppressPermissionError(e)) { - LOG.warn("Unable to list metadata directory {}: {}", metadataPath, e); + LOG.warn("Unable to list metadata directory {}", metadataPath, e); return false; } else { throw new UncheckedIOException(e); @@ -177,7 +177,7 @@ private boolean isDirectory(Path path) { return false; } catch (IOException e) { if (shouldSuppressPermissionError(e)) { - LOG.warn("Unable to list directory {}: {}", path, e); + LOG.warn("Unable to list directory {}", path, e); return false; } else { throw new UncheckedIOException(e);