From 5f894960817fa1d771fd114d9e44aad5023647fa Mon Sep 17 00:00:00 2001 From: Suman Das <59254445+sumandas0@users.noreply.github.com> Date: Mon, 6 May 2024 19:28:19 +0530 Subject: [PATCH] fix: add proper error logs incase feature flag evaluation fails --- .../src/main/java/org/apache/atlas/repository/Constants.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/common/src/main/java/org/apache/atlas/repository/Constants.java b/common/src/main/java/org/apache/atlas/repository/Constants.java index 380be3e449..a4a0d83efe 100644 --- a/common/src/main/java/org/apache/atlas/repository/Constants.java +++ b/common/src/main/java/org/apache/atlas/repository/Constants.java @@ -462,7 +462,8 @@ public static String getESIndex() { if (FeatureFlagStore.evaluate("use_temp_es_index", "true")) { indexSuffix = "_temp"; } - } catch (Exception ignored) { + } catch (Exception e) { + LOG.error("Failed to evaluate feature flag with error", e); } } return indexSuffix == null ? VERTEX_INDEX_NAME : VERTEX_INDEX_NAME + indexSuffix;