From df616413e0ce936e7d0a4e9ccc754e265d069df7 Mon Sep 17 00:00:00 2001 From: Chloe Date: Thu, 28 Jan 2021 16:37:11 -0600 Subject: [PATCH] Removed stack trace when catches anonymizing data error (#1014) --- .../sql/legacy/utils/QueryDataAnonymizer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/legacy/src/main/java/com/amazon/opendistroforelasticsearch/sql/legacy/utils/QueryDataAnonymizer.java b/legacy/src/main/java/com/amazon/opendistroforelasticsearch/sql/legacy/utils/QueryDataAnonymizer.java index b23798274b..04a351edfa 100644 --- a/legacy/src/main/java/com/amazon/opendistroforelasticsearch/sql/legacy/utils/QueryDataAnonymizer.java +++ b/legacy/src/main/java/com/amazon/opendistroforelasticsearch/sql/legacy/utils/QueryDataAnonymizer.java @@ -47,7 +47,7 @@ public static String anonymizeData(String query) { .replaceAll("false", "boolean_literal") .replaceAll("[\\n][\\t]+", " "); } catch (Exception e) { - LOG.error("Caught an exception when removing sensitive data", e); + LOG.warn("Caught an exception when anonymizing sensitive data"); resultQuery = query; } return resultQuery;