This is an automated email from the ASF dual-hosted git repository.
cshannon pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/activemq.git
The following commit(s) were added to refs/heads/main by this push:
new 932ac01c0a AMQ-9719 - reduce logging from debug to trace
932ac01c0a is described below
commit 932ac01c0a82cf7c58e5461b50a19f4d60b6f69f
Author: Christopher L. Shannon <[email protected]>
AuthorDate: Fri Jun 6 07:35:29 2025 -0400
AMQ-9719 - reduce logging from debug to trace
---
.../apache/activemq/broker/region/policy/PriorityDispatchPolicy.java | 4 ++--
.../src/main/java/org/apache/activemq/filter/XPathExpression.java | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git
a/activemq-broker/src/main/java/org/apache/activemq/broker/region/policy/PriorityDispatchPolicy.java
b/activemq-broker/src/main/java/org/apache/activemq/broker/region/policy/PriorityDispatchPolicy.java
index 7eb2bcd053..edffe13851 100644
---
a/activemq-broker/src/main/java/org/apache/activemq/broker/region/policy/PriorityDispatchPolicy.java
+++
b/activemq-broker/src/main/java/org/apache/activemq/broker/region/policy/PriorityDispatchPolicy.java
@@ -53,12 +53,12 @@ public class PriorityDispatchPolicy extends
SimpleDispatchPolicy {
ArrayList<Subscription> ordered = new
ArrayList<Subscription>(consumers);
Collections.sort(ordered, orderedCompare);
- if (LOG.isDebugEnabled() && ordered.size() > 0) {
+ if (LOG.isTraceEnabled() && !ordered.isEmpty()) {
StringJoiner stringJoiner = new StringJoiner(",");
for (Subscription sub : ordered) {
stringJoiner.add(String.valueOf(sub.getConsumerInfo().getPriority()));
}
- LOG.debug("Ordered priorities: {}", stringJoiner);
+ LOG.trace("Ordered priorities: {}", stringJoiner);
}
return super.dispatch(node, msgContext, ordered);
}
diff --git
a/activemq-client/src/main/java/org/apache/activemq/filter/XPathExpression.java
b/activemq-client/src/main/java/org/apache/activemq/filter/XPathExpression.java
index 9dca2cc7b0..865c9380ce 100644
---
a/activemq-client/src/main/java/org/apache/activemq/filter/XPathExpression.java
+++
b/activemq-client/src/main/java/org/apache/activemq/filter/XPathExpression.java
@@ -122,13 +122,13 @@ public final class XPathExpression implements
BooleanExpression {
}
}
- if (LOG.isDebugEnabled() && features.size() > 0) {
+ if (LOG.isTraceEnabled() && !features.isEmpty()) {
StringJoiner featureString = new StringJoiner(", ");
// just log the configured feature
for (String feature : features) {
featureString.add(feature);
}
- LOG.debug("Configured features {}", featureString);
+ LOG.trace("Configured features {}", featureString);
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information, visit: https://activemq.apache.org/contact