sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tomm...@apache.org
Subject svn commit: r1646203 - /sling/trunk/contrib/extensions/distribution/core/src/main/java/org/apache/sling/distribution/agent/impl/SimpleDistributionAgent.java
Date Wed, 17 Dec 2014 11:28:36 GMT
Author: tommaso
Date: Wed Dec 17 11:28:36 2014
New Revision: 1646203

URL: http://svn.apache.org/r1646203
Log:
SLING-4153 - minor log fix

Modified:
    sling/trunk/contrib/extensions/distribution/core/src/main/java/org/apache/sling/distribution/agent/impl/SimpleDistributionAgent.java

Modified: sling/trunk/contrib/extensions/distribution/core/src/main/java/org/apache/sling/distribution/agent/impl/SimpleDistributionAgent.java
URL: http://svn.apache.org/viewvc/sling/trunk/contrib/extensions/distribution/core/src/main/java/org/apache/sling/distribution/agent/impl/SimpleDistributionAgent.java?rev=1646203&r1=1646202&r2=1646203&view=diff
==============================================================================
--- sling/trunk/contrib/extensions/distribution/core/src/main/java/org/apache/sling/distribution/agent/impl/SimpleDistributionAgent.java
(original)
+++ sling/trunk/contrib/extensions/distribution/core/src/main/java/org/apache/sling/distribution/agent/impl/SimpleDistributionAgent.java
Wed Dec 17 11:28:36 2014
@@ -257,11 +257,9 @@ public class SimpleDistributionAgent imp
     public void enable() {
         log.info("enabling agent");
 
-
         // register triggers if any
         agentBasedRequestHandler = new AgentBasedRequestHandler(this);
 
-
         for (DistributionTrigger trigger : triggers) {
             try {
                 trigger.register(agentBasedRequestHandler);
@@ -270,7 +268,6 @@ public class SimpleDistributionAgent imp
             }
         }
 
-
         if (!isPassive()) {
             try {
                 queueProvider.enableQueueProcessing(new PackageQueueProcessor());
@@ -413,7 +410,7 @@ public class SimpleDistributionAgent imp
         public void handle(@Nonnull DistributionRequest request) {
 
             if (!active) {
-                log.warn("handler is active when agent is disabled");
+                log.debug("skipping agent handler as agent {} is disabled", name);
                 return;
             }
 



Mime
View raw message