sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From romb...@apache.org
Subject [sling-org-apache-sling-discovery-commons] 21/38: SLING-5173 : reduce log in cancel when already done
Date Tue, 07 Nov 2017 09:26:24 GMT
This is an automated email from the ASF dual-hosted git repository.

rombert pushed a commit to annotated tag org.apache.sling.discovery.commons-1.0.0
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-discovery-commons.git

commit 732f4d69afb86b7f5c15004df308577733a50ee1
Author: Stefan Egli <stefanegli@apache.org>
AuthorDate: Wed Oct 21 17:12:06 2015 +0000

    SLING-5173 : reduce log in cancel when already done
    
    git-svn-id: https://svn.apache.org/repos/asf/sling/trunk/bundles/extensions/discovery/commons@1709889
13f79535-47bb-0310-9956-ffa450edef68
---
 .../providers/spi/base/AbstractServiceWithBackgroundCheck.java        | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/main/java/org/apache/sling/discovery/commons/providers/spi/base/AbstractServiceWithBackgroundCheck.java
b/src/main/java/org/apache/sling/discovery/commons/providers/spi/base/AbstractServiceWithBackgroundCheck.java
index bd87dea..8ccae9f 100644
--- a/src/main/java/org/apache/sling/discovery/commons/providers/spi/base/AbstractServiceWithBackgroundCheck.java
+++ b/src/main/java/org/apache/sling/discovery/commons/providers/spi/base/AbstractServiceWithBackgroundCheck.java
@@ -122,7 +122,9 @@ public abstract class AbstractServiceWithBackgroundCheck {
         }
 
         void cancel() {
-            logger.info("cancel: "+threadName);
+            if (!done) {
+                logger.info("cancel: "+threadName);
+            }
             cancelled = true;
         }
 

-- 
To stop receiving notification emails like this one, please contact
"commits@sling.apache.org" <commits@sling.apache.org>.

Mime
View raw message