You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by cs...@apache.org on 2019/07/05 07:55:52 UTC

[sling-org-apache-sling-distribution-journal-messages] branch master updated (ee3332c -> 92b0454)

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

cschneider pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-distribution-journal-messages.git.


    from ee3332c  SLING-8533 - Add ExceptionEventSender
     new 400e237  SLING-8533 - Expose event property names
     new 92b0454  SLING-8563 - Update to surefire plugin 2.22.2 to make build compatible to Java 11

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 pom.xml                                                            | 1 +
 .../apache/sling/distribution/journal/ExceptionEventSender.java    | 7 +++++--
 2 files changed, 6 insertions(+), 2 deletions(-)


[sling-org-apache-sling-distribution-journal-messages] 01/02: SLING-8533 - Expose event property names

Posted by cs...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

cschneider pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-distribution-journal-messages.git

commit 400e23751202886186fa7231f5453c3d1a5c4a98
Author: Christian Schneider <cs...@adobe.com>
AuthorDate: Fri Jul 5 09:37:48 2019 +0200

    SLING-8533 - Expose event property names
---
 .../apache/sling/distribution/journal/ExceptionEventSender.java    | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/src/main/java/org/apache/sling/distribution/journal/ExceptionEventSender.java b/src/main/java/org/apache/sling/distribution/journal/ExceptionEventSender.java
index f83b4d6..d6fd117 100644
--- a/src/main/java/org/apache/sling/distribution/journal/ExceptionEventSender.java
+++ b/src/main/java/org/apache/sling/distribution/journal/ExceptionEventSender.java
@@ -33,6 +33,9 @@ import org.osgi.service.event.EventAdmin;
 public class ExceptionEventSender {
 
     public static final String ERROR_TOPIC = "org/apache/sling/distribution/journal/errors";
+    public static final String KEY_MESSAGE = "message";
+    public static final String KEY_TYPE = "type";
+    
     private final EventAdmin eventAdmin;
 
     public ExceptionEventSender(@Nullable EventAdmin eventAdmin) {
@@ -41,8 +44,8 @@ public class ExceptionEventSender {
 
     private Event createErrorEvent(Exception e) {
         Map<String, String> props = new HashMap<>();
-        props.put("type", e.getClass().getName());
-        props.put("message", e.getMessage());
+        props.put(KEY_TYPE, e.getClass().getName());
+        props.put(KEY_MESSAGE, e.getMessage());
         return new Event(ERROR_TOPIC, props);
     }
 


[sling-org-apache-sling-distribution-journal-messages] 02/02: SLING-8563 - Update to surefire plugin 2.22.2 to make build compatible to Java 11

Posted by cs...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

cschneider pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-distribution-journal-messages.git

commit 92b045445e1a39f7f1e074925d26f72d62d6dccd
Author: Christian Schneider <cs...@adobe.com>
AuthorDate: Fri Jul 5 09:55:41 2019 +0200

    SLING-8563 - Update to surefire plugin 2.22.2 to make build compatible to Java 11
---
 pom.xml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/pom.xml b/pom.xml
index dfd6ad6..99a0eda 100644
--- a/pom.xml
+++ b/pom.xml
@@ -41,6 +41,7 @@
 
     <properties>
         <sling.java.version>8</sling.java.version>
+        <surefire.plugin.version>2.22.2</surefire.plugin.version>
     </properties>
 
     <scm>