Skip to content

Commit

Permalink
Added logging to the comparator.
Browse files Browse the repository at this point in the history
  • Loading branch information
csrster committed Feb 16, 2016
1 parent ba19d57 commit d6bfccd
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public CompareConfigsDesc(long objectLimit, long byteLimit) {
}

public int compare(DomainConfiguration cfg1, DomainConfiguration cfg2) {
log.trace("Comparing " + cfg1 + " " + cfg2);
log.debug("Comparing " + cfg1 + " " + cfg2);
// Compare order xml names
int cmp = cfg1.getOrderXmlName().compareTo(cfg2.getOrderXmlName());
if (cmp != 0) {
Expand All @@ -106,9 +106,9 @@ public int compare(DomainConfiguration cfg1, DomainConfiguration cfg2) {
return res < 0L ? -1 : 1;
}

log.trace("Comparing EAV attributes now");
log.debug("Comparing EAV attributes now");
int result = EAV.compare2(cfg1.getAttributesAndTypes(), cfg2.getAttributesAndTypes());
log.trace("Comparison of EAV attributes gave result " + result);
log.debug("Comparison of EAV attributes gave result " + result);
return result;
}
}
Expand Down

0 comments on commit d6bfccd

Please sign in to comment.