Commit c9fe67a5 authored by nivetha's avatar nivetha
Browse files

logger info

Showing with 5 additions and 1 deletion
+5 -1
......@@ -6,6 +6,8 @@ import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
import org.apache.commons.lang.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;
import com.fasterxml.jackson.core.JsonProcessingException;
......@@ -19,6 +21,8 @@ import com.tarento.formservice.models.FormDetail;
@Service
public class ValidationService {
public static final Logger LOGGER = LoggerFactory.getLogger(ValidationService.class);
public String validateCreateForm(FormDetail form) throws JsonProcessingException {
if (form == null) {
......@@ -136,7 +140,7 @@ public class ValidationService {
}
return dataObjectMap;
} catch (Exception e) {
e.printStackTrace();
LOGGER.error(String.format(Constants.EXCEPTION, "removeEmptyFields", e.getMessage()));
}
return dataObject;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment