Skip to content

Commit

Permalink
Logs: Add log before parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
ChakshuGautam committed Oct 13, 2021
1 parent d4273e9 commit 7329304
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/main/java/com/uci/dao/utils/XMessageDAOUtils.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
package com.uci.dao.utils;


import com.datastax.driver.core.utils.UUIDs;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.uci.dao.models.XMessageDAO;
import messagerosa.core.model.XMessage;

Expand All @@ -12,6 +13,8 @@

public class XMessageDAOUtils {

public static ObjectMapper mapper = new ObjectMapper();

public static XMessageDAO convertXMessageToDAO(XMessage xmsg) {
XMessageDAO xmsgDao = new XMessageDAO();

Expand All @@ -36,8 +39,9 @@ public static XMessageDAO convertXMessageToDAO(XMessage xmsg) {
}

try {
System.out.println(mapper.writeValueAsString(xmsg));
xmsgDao.setXMessage(xmsg.toXML());
} catch (JAXBException e) {
} catch (JAXBException | JsonProcessingException e) {
e.printStackTrace();
}

Expand Down

0 comments on commit 7329304

Please sign in to comment.