fixed bug
This commit is contained in:
parent
6066406a08
commit
60e025cb5a
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue