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

tmaret pushed a commit to branch SLING-12652
in repository 
https://gitbox.apache.org/repos/asf/sling-org-apache-sling-distribution-journal.git

commit 4cb1518fb34fdaaeb6297f262bfd1b0f4485c847
Author: tmaret <[email protected]>
AuthorDate: Mon Feb 10 21:13:10 2025 +0100

    SLING-12652 - Add component name in processor properties
---
 .../org/apache/sling/distribution/journal/bookkeeper/BookKeeper.java | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git 
a/src/main/java/org/apache/sling/distribution/journal/bookkeeper/BookKeeper.java
 
b/src/main/java/org/apache/sling/distribution/journal/bookkeeper/BookKeeper.java
index 9a4ae46..04f9bdf 100644
--- 
a/src/main/java/org/apache/sling/distribution/journal/bookkeeper/BookKeeper.java
+++ 
b/src/main/java/org/apache/sling/distribution/journal/bookkeeper/BookKeeper.java
@@ -22,9 +22,7 @@ import static java.lang.String.format;
 import static java.lang.System.currentTimeMillis;
 import static java.util.Collections.singletonMap;
 import static org.apache.sling.api.resource.ResourceResolverFactory.SUBSERVICE;
-import static 
org.apache.sling.distribution.event.DistributionEventProperties.DISTRIBUTION_PACKAGE_ID;
-import static 
org.apache.sling.distribution.event.DistributionEventProperties.DISTRIBUTION_PATHS;
-import static 
org.apache.sling.distribution.event.DistributionEventProperties.DISTRIBUTION_TYPE;
+import static 
org.apache.sling.distribution.event.DistributionEventProperties.*;
 
 import java.io.IOException;
 import java.io.PrintWriter;
@@ -468,6 +466,7 @@ public class BookKeeper {
         processorProperties.put(DISTRIBUTION_TYPE, 
packageMessage.getReqType().name());
         processorProperties.put(DISTRIBUTION_PATHS, packageMessage.getPaths());
         processorProperties.put(DISTRIBUTION_PACKAGE_ID, 
packageMessage.getPkgId());
+        processorProperties.put(DISTRIBUTION_COMPONENT_NAME, 
packageMessage.getPubAgentName());
 
         return processorProperties;
     }

Reply via email to