This is an automated email from the ASF dual-hosted git repository.

timothyjward pushed a commit to branch fix/record_null
in repository https://gitbox.apache.org/repos/asf/aries-typedevent.git

commit f8d604a47f468090675e094353e5e3126b50b26e
Author: Tim Ward <timothyjw...@apache.org>
AuthorDate: Mon Apr 7 16:42:54 2025 +0100

    Use trace statements for main-path event conversion and monitoring
    
    The main path through the event bus is heavily used and results in huge 
amounts of logging. This is too much even for debug level, and so we are moving 
these log messages to TRACE so that they aren't written unless a ser really 
needs them.
    
    Signed-off-by: Tim Ward <timothyjw...@apache.org>
---
 .../java/org/apache/aries/typedevent/bus/impl/EventConverter.java     | 4 ++--
 .../java/org/apache/aries/typedevent/bus/impl/MonitorEventTask.java   | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git 
a/org.apache.aries.typedevent.bus/src/main/java/org/apache/aries/typedevent/bus/impl/EventConverter.java
 
b/org.apache.aries.typedevent.bus/src/main/java/org/apache/aries/typedevent/bus/impl/EventConverter.java
index 5add133..ef8a9e3 100644
--- 
a/org.apache.aries.typedevent.bus/src/main/java/org/apache/aries/typedevent/bus/impl/EventConverter.java
+++ 
b/org.apache.aries.typedevent.bus/src/main/java/org/apache/aries/typedevent/bus/impl/EventConverter.java
@@ -286,8 +286,8 @@ public class EventConverter {
                                return untypedEventDataForFiltering;
                        }
                } else {
-                       if(_log.isDebugEnabled()) {
-                               _log.debug("Converting {} to untyped data", 
originalEvent);
+                       if(_log.isTraceEnabled()) {
+                               _log.trace("Converting {} to untyped data", 
originalEvent);
                        }
                        untypedEventDataForFiltering = 
eventConverter.convert(originalEvent).sourceAsDTO().to(MAP_WITH_STRING_KEYS);
                }
diff --git 
a/org.apache.aries.typedevent.bus/src/main/java/org/apache/aries/typedevent/bus/impl/MonitorEventTask.java
 
b/org.apache.aries.typedevent.bus/src/main/java/org/apache/aries/typedevent/bus/impl/MonitorEventTask.java
index f89db57..3ea41db 100644
--- 
a/org.apache.aries.typedevent.bus/src/main/java/org/apache/aries/typedevent/bus/impl/MonitorEventTask.java
+++ 
b/org.apache.aries.typedevent.bus/src/main/java/org/apache/aries/typedevent/bus/impl/MonitorEventTask.java
@@ -37,8 +37,8 @@ class MonitorEventTask extends EventTask {
 
     @Override
     protected void unsafeNotify() throws Exception {           
-       if(_log.isDebugEnabled()) {
-               _log.debug("Distributing event to the event monitor");
+       if(_log.isTraceEnabled()) {
+               _log.trace("Distributing event to the event monitor");
        }
        monitorImpl.event(eventType, eventData.toUntypedEvent());
     }

Reply via email to