stratos-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From im...@apache.org
Subject stratos git commit: Adding member id to health statistics publishing debug logs in mock iaas
Date Tue, 09 Dec 2014 07:59:00 GMT
Repository: stratos
Updated Branches:
  refs/heads/4.1.0-test 285671553 -> cf9035e2e


Adding member id to health statistics publishing debug logs in mock iaas


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

Branch: refs/heads/4.1.0-test
Commit: cf9035e2edf9495cc7d218b214b11a05d4366178
Parents: 2856715
Author: Imesh Gunaratne <imesh@apache.org>
Authored: Tue Dec 9 13:28:51 2014 +0530
Committer: Imesh Gunaratne <imesh@apache.org>
Committed: Tue Dec 9 13:28:51 2014 +0530

----------------------------------------------------------------------
 .../iaases/mock/statistics/MockHealthStatisticsNotifier.java   | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/stratos/blob/cf9035e2/components/org.apache.stratos.cloud.controller/src/main/java/org/apache/stratos/cloud/controller/iaases/mock/statistics/MockHealthStatisticsNotifier.java
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.cloud.controller/src/main/java/org/apache/stratos/cloud/controller/iaases/mock/statistics/MockHealthStatisticsNotifier.java
b/components/org.apache.stratos.cloud.controller/src/main/java/org/apache/stratos/cloud/controller/iaases/mock/statistics/MockHealthStatisticsNotifier.java
index c69f74f..97680ec 100644
--- a/components/org.apache.stratos.cloud.controller/src/main/java/org/apache/stratos/cloud/controller/iaases/mock/statistics/MockHealthStatisticsNotifier.java
+++ b/components/org.apache.stratos.cloud.controller/src/main/java/org/apache/stratos/cloud/controller/iaases/mock/statistics/MockHealthStatisticsNotifier.java
@@ -48,7 +48,8 @@ public class MockHealthStatisticsNotifier implements Runnable {
         try {
             if (statsPublisher.isEnabled()) {
                 if (log.isDebugEnabled()) {
-                    log.debug(String.format("Publishing memory consumption: %f", memoryConsumption));
+                    log.debug(String.format("Publishing memory consumption: [member-id] %s
[value] %f",
+                            mockMemberContext.getMemberId(), memoryConsumption));
                 }
                 statsPublisher.publish(
                         mockMemberContext.getClusterId(),
@@ -61,7 +62,8 @@ public class MockHealthStatisticsNotifier implements Runnable {
                 );
 
                 if (log.isDebugEnabled()) {
-                    log.debug(String.format("Publishing load average: %f", loadAvereage));
+                    log.debug(String.format("Publishing load average: [member-id] %s [value]
%f",
+                            mockMemberContext.getMemberId(), loadAvereage));
                 }
                 statsPublisher.publish(
                         mockMemberContext.getClusterId(),


Mime
View raw message