World's most powerful open data catalog for building a high-performance, geo-distributed and federated metadata lake.
Java ai-catalogdata-catalogdatalakefederated-querylakehousemetadatametalakemodel-catalogopendatacatalogskycomputingstratosphere
[#7247] refactor(authorization): Formatted error logger in authorization ranger client extension and include stacktrace (#7257)
Praveen6929bd31f419
diff --git a/authorizations/authorization-ranger/src/main/java/org/apache/gravitino/authorization/ranger/RangerClientExtension.java b/authorizations/authorization-ranger/src/main/java/org/apache/gravitino/authorization/ranger/RangerClientExtension.javaindex e1e9f6955d..723c5549dd 100644--- a/authorizations/authorization-ranger/src/main/java/org/apache/gravitino/authorization/ranger/RangerClientExtension.java+++ b/authorizations/authorization-ranger/src/main/java/org/apache/gravitino/authorization/ranger/RangerClientExtension.java@@ -119,7 +119,7 @@ public class RangerClientExtension extends RangerClient {try {callAPIMethodClassResponseType.invoke(this, CREATE_EXTERNAL_USER, null, user, VXUser.class);} catch (UniformInterfaceException e) {- LOG.error("Failed to create user: " + e.getResponse().getEntity(String.class));+ LOG.error("Failed to create user: {}", e.getResponse().getEntity(String.class), e);return Boolean.FALSE;} catch (InvocationTargetException | IllegalAccessException e) {Throwable cause = e.getCause();@@ -169,7 +169,7 @@ public class RangerClientExtension extends RangerClient {try {callAPIMethodClassResponseType.invoke(this, CREATE_GROUP, null, group, VXGroup.class);} catch (UniformInterfaceException e) {- LOG.error("Failed to create user: " + e.getResponse().getEntity(String.class));+ LOG.error("Failed to create group: {}", e.getResponse().getEntity(String.class), e);return Boolean.FALSE;} catch (InvocationTargetException | IllegalAccessException e) {throw new RuntimeException(e);