This is an automated email from the ASF dual-hosted git repository. jsedding pushed a commit to branch testing/extra-logging in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-resourceresolver.git
The following commit(s) were added to refs/heads/testing/extra-logging by this push: new ca326dd thread name tracability ca326dd is described below commit ca326dd90f15172bc14c9b9d615ca2b624d0845c Author: Julian Sedding <jsedd...@apache.org> AuthorDate: Fri Sep 29 12:54:26 2023 +0200 thread name tracability --- .../apache/sling/resourceresolver/impl/FactoryRegistrationHandler.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/apache/sling/resourceresolver/impl/FactoryRegistrationHandler.java b/src/main/java/org/apache/sling/resourceresolver/impl/FactoryRegistrationHandler.java index 2f5d02a..f738f06 100644 --- a/src/main/java/org/apache/sling/resourceresolver/impl/FactoryRegistrationHandler.java +++ b/src/main/java/org/apache/sling/resourceresolver/impl/FactoryRegistrationHandler.java @@ -60,8 +60,9 @@ public class FactoryRegistrationHandler implements AutoCloseable { private final AtomicReference<FactoryRegistration> factoryRegistration = new AtomicReference<>(null); public FactoryRegistrationHandler() { + final String originalThreadName = Thread.currentThread().getName(); this.factoryRegistrationWorker = Executors.newSingleThreadExecutor( - r -> new Thread(r, ResourceResolverFactory.class.getSimpleName() + " registration/deregistration")); + r -> new Thread(r, ResourceResolverFactory.class.getSimpleName() + " registration/deregistration (" + originalThreadName + ")")); } public void configure(ResourceResolverFactoryActivator activator, FactoryPreconditions factoryPreconditions) {