summaryrefslogtreecommitdiffstats
path: root/appc-common
diff options
context:
space:
mode:
Diffstat (limited to 'appc-common')
-rw-r--r--appc-common/src/main/java/org/onap/appc/util/StringHelper.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/appc-common/src/main/java/org/onap/appc/util/StringHelper.java b/appc-common/src/main/java/org/onap/appc/util/StringHelper.java
index 2e68cbba4..19dddc1f6 100644
--- a/appc-common/src/main/java/org/onap/appc/util/StringHelper.java
+++ b/appc-common/src/main/java/org/onap/appc/util/StringHelper.java
@@ -26,6 +26,9 @@
package org.onap.appc.util;
+import com.att.eelf.configuration.EELFLogger;
+import com.att.eelf.configuration.EELFManager;
+
import java.util.Date;
import java.util.List;
import java.util.Map;
@@ -40,6 +43,7 @@ import java.util.regex.Pattern;
*/
public final class StringHelper {
+ private static final EELFLogger logger = EELFManager.getInstance().getLogger(StringHelper.class);
public static final String DASH = "-";
public static final String DOT = ".";
@@ -542,7 +546,7 @@ public final class StringHelper {
return Integer.parseInt(input);
} catch (NumberFormatException nfe) {
// Should not happen
- nfe.printStackTrace();
+ logger.error(nfe.getMessage());
}
}
@@ -552,6 +556,7 @@ public final class StringHelper {
return Double.parseDouble(input);
} catch (NumberFormatException | NullPointerException e) {
// NPE won't happen bc of regex check
+ logger.error(e.getMessage());
}
}