You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by ro...@apache.org on 2017/11/07 09:26:24 UTC

[sling-org-apache-sling-discovery-commons] 21/38: SLING-5173 : reduce log in cancel when already done

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 <st...@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" <co...@sling.apache.org>.