Skip to content

Commit

Permalink
Do not log errors for propagated exceptions in IcebergCatalogAdapter (#…
Browse files Browse the repository at this point in the history
…876)

Log them as "DEBUG" instead.

This is to avoid having an "ERROR" log message about "namespace not
found" (with a long stack trace) when, for example, Spark executes
a `CREATE NAMESPACE myNewNamespace`.
  • Loading branch information
dimas-b authored Jan 24, 2025
1 parent a880db5 commit 7d854f2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ private Response withCatalog(
try (PolarisCatalogHandlerWrapper wrapper = newHandlerWrapper(securityContext, catalogName)) {
return action.apply(wrapper);
} catch (RuntimeException e) {
LOGGER.error("Error while operating on catalog", e);
LOGGER.debug("RuntimeException while operating on catalog. Propagating to caller.", e);
throw e;
} catch (Exception e) {
LOGGER.error("Error while operating on catalog", e);
Expand Down

0 comments on commit 7d854f2

Please sign in to comment.