mirror of https://github.com/apache/activemq.git
AMQ-7404 add debug logging for selectors loaded from the cache file
This commit is contained in:
parent
098fd9c5a9
commit
e6befbc875
|
@ -194,7 +194,20 @@ public class SubQueueSelectorCacheBroker extends BrokerFilter implements Runnabl
|
|||
try (FileInputStream fis = new FileInputStream(persistFile);) {
|
||||
ObjectInputStream in = new ObjectInputStream(fis);
|
||||
try {
|
||||
LOG.debug("Reading selector cache....");
|
||||
subSelectorCache = (ConcurrentHashMap<String, Set<String>>) in.readObject();
|
||||
|
||||
if (LOG.isDebugEnabled()) {
|
||||
final StringBuilder sb = new StringBuilder();
|
||||
sb.append("Selector cache data loaded from: ").append(persistFile.getAbsolutePath()).append("\n");
|
||||
sb.append("The following entries were loaded from the cache file: \n");
|
||||
|
||||
subSelectorCache.forEach((k,v) -> {
|
||||
sb.append("\t").append(k).append(": ").append(v).append("\n");
|
||||
});
|
||||
|
||||
LOG.debug(sb.toString());
|
||||
}
|
||||
} catch (ClassNotFoundException ex) {
|
||||
LOG.error("Invalid selector cache data found. Please remove file.", ex);
|
||||
} finally {
|
||||
|
|
Loading…
Reference in New Issue