You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stratos.apache.org by im...@apache.org on 2013/12/18 19:38:05 UTC
git commit: Refined logs in event subscriber
Updated Branches:
refs/heads/master 13a672acf -> 72d7e18d6
Refined logs in event subscriber
Project: http://git-wip-us.apache.org/repos/asf/incubator-stratos/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-stratos/commit/72d7e18d
Tree: http://git-wip-us.apache.org/repos/asf/incubator-stratos/tree/72d7e18d
Diff: http://git-wip-us.apache.org/repos/asf/incubator-stratos/diff/72d7e18d
Branch: refs/heads/master
Commit: 72d7e18d6831861ed50cc2df652a7998d9b53423
Parents: 13a672a
Author: Imesh Gunaratne <im...@apache.org>
Authored: Thu Dec 19 00:07:55 2013 +0530
Committer: Imesh Gunaratne <im...@apache.org>
Committed: Thu Dec 19 00:07:55 2013 +0530
----------------------------------------------------------------------
.../stratos/cartridge/agent/event/subscriber/Main.java | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/72d7e18d/products/cartridge-agent/modules/event-subscriber/src/main/java/org/apache/stratos/cartridge/agent/event/subscriber/Main.java
----------------------------------------------------------------------
diff --git a/products/cartridge-agent/modules/event-subscriber/src/main/java/org/apache/stratos/cartridge/agent/event/subscriber/Main.java b/products/cartridge-agent/modules/event-subscriber/src/main/java/org/apache/stratos/cartridge/agent/event/subscriber/Main.java
index 0cd1d2f..ba6492b 100644
--- a/products/cartridge-agent/modules/event-subscriber/src/main/java/org/apache/stratos/cartridge/agent/event/subscriber/Main.java
+++ b/products/cartridge-agent/modules/event-subscriber/src/main/java/org/apache/stratos/cartridge/agent/event/subscriber/Main.java
@@ -63,7 +63,7 @@ public class Main {
e.printStackTrace();
}
- log.info("Sending member started event");
+ log.info("Publishing instance started event");
// Send member activated event
InstanceStartedEvent event = new InstanceStartedEvent(
LaunchParamsUtil.readParamValueFromPayload(CartridgeAgentConstants.SERVICE_NAME),
@@ -73,14 +73,15 @@ public class Main {
LaunchParamsUtil.readParamValueFromPayload(CartridgeAgentConstants.MEMBER_ID));
EventPublisher publisher = new EventPublisher(Constants.INSTANCE_STATUS_TOPIC);
publisher.publish(event);
- log.info("Member started event is sent");
+ log.info("Instance started event is published");
String repoURL = LaunchParamsUtil
.readParamValueFromPayload("GIT_REPO");
if ("null".equals(repoURL) || repoURL == null) {
- log.info(" No git repo for this cartridge");
+ log.info("No git repo found for this cartridge");
waitForPortsTobeActive();
+ log.info("All ports active");
InstanceActivatedEvent instanceActivatedEvent = new InstanceActivatedEvent(
LaunchParamsUtil
.readParamValueFromPayload(CartridgeAgentConstants.SERVICE_NAME),
@@ -95,7 +96,7 @@ public class Main {
EventPublisher instanceStatusPublisher = new EventPublisher(
Constants.INSTANCE_STATUS_TOPIC);
instanceStatusPublisher.publish(instanceActivatedEvent);
- log.info(" Instance status published. No git repo ");
+ log.info("Instance activated event published");
}
// Start periodical file checker task