This is an automated email from the ASF dual-hosted git repository.
joerghoh pushed a commit to branch master
in repository
https://gitbox.apache.org/repos/asf/sling-org-apache-sling-event.git
The following commit(s) were added to refs/heads/master by this push:
new 04727e4 SLING-13046 log an error in case the thread terminates
unexpectetly (#50)
04727e4 is described below
commit 04727e4c541c0a8ae8e9ac217c520ab49b4ba354
Author: Jörg Hoh <[email protected]>
AuthorDate: Fri Jan 16 11:59:53 2026 +0100
SLING-13046 log an error in case the thread terminates unexpectetly (#50)
* SLING-13046 log an error in case the thread terminates unexpectetly
---
.../java/org/apache/sling/event/impl/jobs/config/TopologyHandler.java | 2 ++
1 file changed, 2 insertions(+)
diff --git
a/src/main/java/org/apache/sling/event/impl/jobs/config/TopologyHandler.java
b/src/main/java/org/apache/sling/event/impl/jobs/config/TopologyHandler.java
index b922f87..a86cf55 100644
--- a/src/main/java/org/apache/sling/event/impl/jobs/config/TopologyHandler.java
+++ b/src/main/java/org/apache/sling/event/impl/jobs/config/TopologyHandler.java
@@ -58,6 +58,8 @@ public class TopologyHandler implements
TopologyEventListener, Runnable {
this.isActive.set(true);
final Thread thread = new Thread(this, "Apache Sling Job Topology
Listener Thread");
thread.setDaemon(true);
+ thread.setUncaughtExceptionHandler(
+ (Thread t, Throwable e) -> logger.error("Job Topology Listener
Thread was terminated unexpectedly", e));
thread.start();
}