Merge "[POLICY-134] Fixed bug in PolicyLogger."
diff --git a/common-logging/src/main/java/org/onap/policy/common/logging/eelf/PolicyLogger.java b/common-logging/src/main/java/org/onap/policy/common/logging/eelf/PolicyLogger.java
index d0cc9c1..7507c9e 100644
--- a/common-logging/src/main/java/org/onap/policy/common/logging/eelf/PolicyLogger.java
+++ b/common-logging/src/main/java/org/onap/policy/common/logging/eelf/PolicyLogger.java
@@ -366,14 +366,6 @@
debugLogger.info(MessageCodes.GENERAL_INFO, arg0);
}
- /**
- * Records only one String message without its class name passed in
- * @param arg0
- */
- public static void info(String arg0) {
- MDC.put(CLASS_NAME, "");
- debugLogger.info(MessageCodes.GENERAL_INFO, arg0);
- }
/**
* Records only one String message
@@ -381,7 +373,7 @@
*/
public static void info(Object arg0) {
MDC.put(CLASS_NAME, "");
- info(arg0);
+ debugLogger.info(MessageCodes.GENERAL_INFO, String.valueOf(arg0));
}
/**