incubator-blur-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From amccu...@apache.org
Subject [3/8] git commit: Changed the logging a little bit.
Date Wed, 28 Aug 2013 18:16:49 GMT
Changed the logging a little bit.


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

Branch: refs/heads/master
Commit: 1cee2a5dddb3cd62f3b474d24f9dc6ee6d8d1443
Parents: 99bcb9b
Author: Aaron McCurry <amccurry@gmail.com>
Authored: Wed Aug 28 14:06:12 2013 -0400
Committer: Aaron McCurry <amccurry@gmail.com>
Committed: Wed Aug 28 14:06:12 2013 -0400

----------------------------------------------------------------------
 .../org/apache/blur/manager/writer/SharedMergeScheduler.java   | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/1cee2a5d/blur-core/src/main/java/org/apache/blur/manager/writer/SharedMergeScheduler.java
----------------------------------------------------------------------
diff --git a/blur-core/src/main/java/org/apache/blur/manager/writer/SharedMergeScheduler.java
b/blur-core/src/main/java/org/apache/blur/manager/writer/SharedMergeScheduler.java
index 6cd1318..87c31a6 100644
--- a/blur-core/src/main/java/org/apache/blur/manager/writer/SharedMergeScheduler.java
+++ b/blur-core/src/main/java/org/apache/blur/manager/writer/SharedMergeScheduler.java
@@ -123,7 +123,11 @@ public class SharedMergeScheduler implements Runnable, Closeable {
     long e = System.currentTimeMillis();
     double time = (e - s) / 1000.0;
     double rate = (merge.totalBytesSize() / 1024 / 1024) / time;
-    LOG.debug("Merge took [{0} s] to complete at rate of [{1} MB/s]", time, rate);
+    if (time > 10) {
+      LOG.info("Merge took [{0} s] to complete at rate of [{1} MB/s]", time, rate);
+    } else {
+      LOG.debug("Merge took [{0} s] to complete at rate of [{1} MB/s]", time, rate);
+    }
     return true;
   }
 


Mime
View raw message