fixed bug

This commit is contained in:
Massimiliano Assante 2023-02-02 20:23:51 +01:00
parent 6066406a08
commit 60e025cb5a
1 changed files with 2 additions and 2 deletions

View File

@ -235,7 +235,7 @@ public class Comments {
try {
result = CassandraConnection.getInstance().getDatabookStore().addComment(theComment);
logger.debug("Added comment? " + comment.toString() + " Result is " +result);
logger.info("Added comment? " + comment.toString() + " Result is " +result);
} catch(Exception e){
e.printStackTrace();
responseBean.setMessage("Could not reach the DB to write the comment, something went wrong");
@ -245,7 +245,7 @@ public class Comments {
}
if(result){
logger.debug("Comment correctly written by user " + username);
logger.info("Comment correctly written by user " + username);
responseBean.setResult(result);
responseBean.setSuccess(true);
return Response.status(status).entity(responseBean).build();