Repository: incubator-stratos
Updated Branches:
  refs/heads/master b24c71ef6 -> e4b15b6f5


Added ports activated info log in cartridge agent


Project: http://git-wip-us.apache.org/repos/asf/incubator-stratos/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-stratos/commit/a8e3181b
Tree: http://git-wip-us.apache.org/repos/asf/incubator-stratos/tree/a8e3181b
Diff: http://git-wip-us.apache.org/repos/asf/incubator-stratos/diff/a8e3181b

Branch: refs/heads/master
Commit: a8e3181b1ba4228d8f18bc2ed2864d2cd49c5078
Parents: b24c71e
Author: Imesh Gunaratne <[email protected]>
Authored: Wed Apr 30 22:18:00 2014 +0530
Committer: Imesh Gunaratne <[email protected]>
Committed: Wed Apr 30 22:18:00 2014 +0530

----------------------------------------------------------------------
 .../stratos/cartridge/agent/util/CartridgeAgentUtils.java       | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/a8e3181b/components/org.apache.stratos.cartridge.agent/src/main/java/org/apache/stratos/cartridge/agent/util/CartridgeAgentUtils.java
----------------------------------------------------------------------
diff --git 
a/components/org.apache.stratos.cartridge.agent/src/main/java/org/apache/stratos/cartridge/agent/util/CartridgeAgentUtils.java
 
b/components/org.apache.stratos.cartridge.agent/src/main/java/org/apache/stratos/cartridge/agent/util/CartridgeAgentUtils.java
index 8abb285..010462d 100644
--- 
a/components/org.apache.stratos.cartridge.agent/src/main/java/org/apache/stratos/cartridge/agent/util/CartridgeAgentUtils.java
+++ 
b/components/org.apache.stratos.cartridge.agent/src/main/java/org/apache/stratos/cartridge/agent/util/CartridgeAgentUtils.java
@@ -94,7 +94,7 @@ public class CartridgeAgentUtils {
         boolean active = false;
         while (!active) {
             if(log.isInfoEnabled()) {
-                log.info("Waiting for ports to be active: [IP] "+ipAddress+" 
[Ports] "+ports);
+                log.info("Waiting for ports to be active: [ip] "+ipAddress+" 
[ports] "+ports);
             }
             active = checkPortsActive(ipAddress,  ports);
             long endTime = System.currentTimeMillis();
@@ -107,6 +107,9 @@ public class CartridgeAgentUtils {
             } catch (InterruptedException e) {
             }
         }
+        if(log.isInfoEnabled()) {
+            log.info("Ports activated: [ip] " + ipAddress + " [ports] "+ports);
+        }
     }
 
     public static boolean checkPortsActive(String ipAddress, List<Integer> 
ports) {

Reply via email to