NO-JIRA Adding trace on RA Scan

This commit is contained in:
Clebert Suconic 2018-08-21 21:59:13 -04:00
parent 55b0d5b0ea
commit 7558997d02
1 changed files with 11 additions and 0 deletions

View File

@ -577,6 +577,17 @@ public class ActiveMQSessionContext extends SessionContext {
Xid[] xidArray = xids.toArray(new Xid[xids.size()]);
if (logger.isTraceEnabled()) {
StringBuffer buffer = new StringBuffer();
for (int i = 0; i < xidArray.length; i++) {
buffer.append(xidArray[i].toString());
if (i + 1 < xidArray.length) {
buffer.append(",");
}
}
logger.trace("xaScan returning " + xidArray.length + " xids = [" + buffer.toString() + "]");
}
return xidArray;
}