AT&T 1712 and 1802 release code
[so.git] / adapters / mso-vfc-adapter / src / main / java / org / openecomp / mso / adapters / vfc / util / ValidateUtil.java
index 13727bd..8bfa933 100644 (file)
@@ -22,15 +22,15 @@ package org.openecomp.mso.adapters.vfc.util;
 \r
 import org.openecomp.mso.adapters.vfc.constant.HttpCode;\r
 import org.openecomp.mso.adapters.vfc.exceptions.ApplicationException;\r
-import org.openecomp.mso.logger.MessageEnum;\r
-import org.openecomp.mso.logger.MsoLogger;\r
+import org.slf4j.Logger;\r
+import org.slf4j.LoggerFactory;\r
 \r
 public class ValidateUtil {\r
 \r
   /**\r
    * Log server.\r
    */\r
-  private static final MsoLogger LOGGER = MsoLogger.getMsoLogger(MsoLogger.Catalog.RA);\r
+  private static final Logger LOGGER = LoggerFactory.getLogger(ValidateUtil.class);\r
 \r
   /**\r
    * Constructor<br/>\r
@@ -55,8 +55,8 @@ public class ValidateUtil {
     if (null != paramValue && !paramValue.isEmpty()) {\r
       return;\r
     }\r
-    LOGGER.error(MessageEnum.RA_NS_EXC, "VFC Adapter", "", MsoLogger.ErrorCode.AvailabilityError, paramName + ": Parameter is null or empty.");\r
 \r
+    LOGGER.error(paramName + ": Parameter is null or empty.");\r
     throw new ApplicationException(HttpCode.BAD_REQUEST, paramName + ": Invalid parameter.");\r
   }\r
 \r
@@ -68,8 +68,7 @@ public class ValidateUtil {
    */\r
   public static void assertObjectNotNull(Object object) throws ApplicationException {\r
     if (null == object) {\r
-      LOGGER.error(MessageEnum.RA_NS_EXC, "VFC Adapter", "", MsoLogger.ErrorCode.AvailabilityError, "Object is null.");\r
-\r
+      LOGGER.error("Object is null.");\r
       throw new ApplicationException(HttpCode.BAD_REQUEST, "Object is null.");\r
     }\r
 \r