[SDC-29] rebase continue work to align source
[sdc.git] / catalog-model / src / main / java / org / openecomp / sdc / be / model / operations / migration / MigrationMalformedDataLogger.java
@@ -14,16 +14,21 @@ import java.util.stream.Collectors;
 /**
  * to be moved with all operations to the migration project
  */
-@Deprecated
-public class MigrationErrorInformer {
 
-    private static Logger log = LoggerFactory.getLogger(MigrationErrorInformer.class);
+public class MigrationMalformedDataLogger {
+
+    private static Logger log = LoggerFactory.getLogger(MigrationMalformedDataLogger.class);
     private static Set<String> malformedVFs = new HashSet<>();
 
-    public static void addMalformedVF(String vfId) {
+    public static void reportMalformedVF(String vfId, String errorMsg) {
+        log.error(errorMsg);
         malformedVFs.add(vfId);
     }
 
+    public static void logMalformedDataMsg(String errorMsg) {
+        log.error(errorMsg);
+    }
+
     public static void logIfServiceUsingMalformedVfs(Component service) {
         List<ComponentInstance> componentInstances = service.getComponentInstances();
         if (componentInstances != null && !componentInstances.isEmpty() && !malformedVFs.isEmpty()) {