From 530d1d25842b16ebbbc11d33f5aeae058cf50508 Mon Sep 17 00:00:00 2001 From: tomsun28 Date: Mon, 4 Mar 2024 18:35:19 +0800 Subject: [PATCH] bugfix resource bundle not found error log (#1603) Signed-off-by: tomsun28 Co-authored-by: Logic --- .../hertzbeat/common/support/ResourceBundleUtf8Control.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/common/src/main/java/org/dromara/hertzbeat/common/support/ResourceBundleUtf8Control.java b/common/src/main/java/org/dromara/hertzbeat/common/support/ResourceBundleUtf8Control.java index d2061f51f4f..66899dbeebe 100644 --- a/common/src/main/java/org/dromara/hertzbeat/common/support/ResourceBundleUtf8Control.java +++ b/common/src/main/java/org/dromara/hertzbeat/common/support/ResourceBundleUtf8Control.java @@ -62,9 +62,7 @@ public ResourceBundle newBundle(String baseName, Locale locale, String format, C throw new ClassCastException(bundleClass.getName() + " cannot be cast to ResourceBundle"); } - } catch (ClassNotFoundException e) { - log.error(e.getMessage(), e); - } + } catch (ClassNotFoundException ignored) {} } else if (JAVA_PROPERTIES.equals(format)) { final String resourceName = toResourceName0(bundleName, "properties"); if (resourceName == null) {