brooklyn-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From henev...@apache.org
Subject [10/50] brooklyn-server git commit: minor logging fixes
Date Mon, 01 Feb 2016 17:48:56 GMT
minor logging fixes


Project: http://git-wip-us.apache.org/repos/asf/brooklyn-server/repo
Commit: http://git-wip-us.apache.org/repos/asf/brooklyn-server/commit/8b7985ce
Tree: http://git-wip-us.apache.org/repos/asf/brooklyn-server/tree/8b7985ce
Diff: http://git-wip-us.apache.org/repos/asf/brooklyn-server/diff/8b7985ce

Branch: refs/heads/0.5.0
Commit: 8b7985ce2371ca510dc417eb0bf08ee7c572867b
Parents: 02339d9
Author: Alex Heneveld <alex.heneveld@cloudsoftcorp.com>
Authored: Tue Apr 2 06:59:39 2013 +0100
Committer: Alex Heneveld <alex.heneveld@cloudsoftcorp.com>
Committed: Tue Apr 2 07:02:15 2013 +0100

----------------------------------------------------------------------
 core/src/main/java/brooklyn/event/feed/http/HttpPollValue.java | 6 ++++--
 .../brooklyn/management/internal/BrooklynGarbageCollector.java | 2 +-
 2 files changed, 5 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/brooklyn-server/blob/8b7985ce/core/src/main/java/brooklyn/event/feed/http/HttpPollValue.java
----------------------------------------------------------------------
diff --git a/core/src/main/java/brooklyn/event/feed/http/HttpPollValue.java b/core/src/main/java/brooklyn/event/feed/http/HttpPollValue.java
index 0abad63..faecdd6 100644
--- a/core/src/main/java/brooklyn/event/feed/http/HttpPollValue.java
+++ b/core/src/main/java/brooklyn/event/feed/http/HttpPollValue.java
@@ -13,6 +13,8 @@ import org.apache.http.HttpResponse;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
+import brooklyn.util.Time;
+
 import com.google.common.base.Throwables;
 import com.google.common.collect.Maps;
 import com.google.common.io.ByteStreams;
@@ -51,8 +53,8 @@ public class HttpPollValue {
             
             response.getEntity().getContentLength();
             durationMillisOfFullContent = System.currentTimeMillis() - startTime;
-            if (log.isDebugEnabled())
-                log.debug("latency detector detected "+durationMillisOfFirstResponse+" /
"+durationMillisOfFullContent+" latency");
+            if (log.isTraceEnabled())
+                log.trace("HttpPollValue latency "+Time.makeTimeString(durationMillisOfFirstResponse)+"
/ "+Time.makeTimeString(durationMillisOfFullContent)+", content size "+content.length);
         } catch (IOException e) {
             throw Throwables.propagate(e);
         }        

http://git-wip-us.apache.org/repos/asf/brooklyn-server/blob/8b7985ce/core/src/main/java/brooklyn/management/internal/BrooklynGarbageCollector.java
----------------------------------------------------------------------
diff --git a/core/src/main/java/brooklyn/management/internal/BrooklynGarbageCollector.java
b/core/src/main/java/brooklyn/management/internal/BrooklynGarbageCollector.java
index 01241ae..0243021 100644
--- a/core/src/main/java/brooklyn/management/internal/BrooklynGarbageCollector.java
+++ b/core/src/main/java/brooklyn/management/internal/BrooklynGarbageCollector.java
@@ -124,7 +124,7 @@ public class BrooklynGarbageCollector {
                 Strings.makeSizeString(Runtime.getRuntime().totalMemory() - Runtime.getRuntime().freeMemory())+"
/ "+
                 Strings.makeSizeString(Runtime.getRuntime().totalMemory()) + " memory; "+
                 "tasks: " +
-                executionManager.getNumActiveTasks()+" active,"+
+                executionManager.getNumActiveTasks()+" active, "+
                 executionManager.getNumInMemoryTasks()+" in memory "+
                 "("+executionManager.getNumIncompleteTasks()+" incomplete and "+
                 executionManager.getTotalTasksSubmitted()+" total submitted)"


Mime
View raw message