Skip to content

Commit

Permalink
Modified trace messages, replaced excess stacks with just message
Browse files Browse the repository at this point in the history
  • Loading branch information
tdl-jturner committed Aug 19, 2019
1 parent e680688 commit a8c339d
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,13 +63,13 @@ public CasquatchTestDaoBuilder withDDL(String ddl) {
session.close();
}
catch(com.datastax.oss.driver.api.core.servererrors.AlreadyExistsException e) {
log.warn("DDL Exception",e);
log.warn("DDL Exception: {}",e.getMessage());
}
catch(com.datastax.oss.driver.api.core.servererrors.InvalidQueryException e) {
log.warn("DDL Exception",e);
log.warn("DDL Exception: {}",e.getMessage());
}
catch(Exception e) {
log.error("DDL Exception",e);
log.warn("DDL Exception: {}",e.getMessage());
throw(e);
}
return this;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ else if(!this.getClass().equals(obj.getClass())) {
!method.isAnnotationPresent(com.tmobile.opensource.casquatch.annotation.CasquatchIgnore.class)) {
try {
if (!(method.invoke(this) == null && method.invoke(obj)==null) && !method.invoke(obj).equals(method.invoke(this))) {
log.trace("No match on " + method.getName());
log.trace("No match on {}",method.getName());
return false;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,6 @@ protected Boolean allowQueryByType(Class clazz) {
else {
return true;
}

}

/**
Expand All @@ -161,7 +160,7 @@ protected <T> BoundStatementBuilder bindIfMarked(BoundStatementBuilder boundStat
}
}
catch (java.lang.IllegalArgumentException e) {
log.trace("Failed to bind {}",field,e);
log.trace("Failed to bind {}: {}",field,e.getMessage());
return boundStatementBuilder;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -517,6 +517,7 @@ public <E extends AbstractCasquatchEntity> List<E> getAllBySolr(Class<E> c, E o,

/**
* Get all objects by passing a partially populated object. Non-Key columns are allowed.
* See https://docs.datastax.com/en/dse/6.0/cql/cql/cql_using/search_index/siQuerySyntax.html for details and limitations including some fields which will not be populated.
* @param <E> Entity Object for results
* @param c Class of object
* @param o partially populated object
Expand Down

0 comments on commit a8c339d

Please sign in to comment.