ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sboi...@apache.org
Subject [35/50] [abbrv] incubator-ignite git commit: # ignite-sprint-3 Change debug output.
Date Mon, 06 Apr 2015 15:07:22 GMT
# ignite-sprint-3 Change debug output.


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

Branch: refs/heads/ignite-437-sqltests-p2
Commit: e06198559a65f0d91081a86e8fe68524bb91afa8
Parents: dd944bf
Author: Andrey Novikov <anovikov@gridgain.com>
Authored: Mon Apr 6 15:37:14 2015 +0700
Committer: Andrey Novikov <anovikov@gridgain.com>
Committed: Mon Apr 6 15:37:14 2015 +0700

----------------------------------------------------------------------
 .../internal/visor/util/VisorTaskUtils.java       | 18 ++++++++++++++----
 1 file changed, 14 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/e0619855/modules/core/src/main/java/org/apache/ignite/internal/visor/util/VisorTaskUtils.java
----------------------------------------------------------------------
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/visor/util/VisorTaskUtils.java
b/modules/core/src/main/java/org/apache/ignite/internal/visor/util/VisorTaskUtils.java
index 1209a40..909dc22 100644
--- a/modules/core/src/main/java/org/apache/ignite/internal/visor/util/VisorTaskUtils.java
+++ b/modules/core/src/main/java/org/apache/ignite/internal/visor/util/VisorTaskUtils.java
@@ -678,8 +678,8 @@ public class VisorTaskUtils {
                 log.warning(msg);
         }
         else
-            X.println("[" + DEBUG_DATE_FMT.get().format(time) + "]" +
-                String.format("%30s %s", "<" + Thread.currentThread().getName() + ">",
msg));
+            X.println(String.format("[%s][%s]%s",
+                DEBUG_DATE_FMT.get().format(time), Thread.currentThread().getName(), msg));
     }
 
     /**
@@ -734,6 +734,16 @@ public class VisorTaskUtils {
     }
 
     /**
+     * Log message.
+     *
+     * @param log Logger.
+     * @param msg Message.
+     */
+    public static void log(@Nullable IgniteLogger log, String msg) {
+        log0(log, U.currentTimeMillis(), " " + msg);
+    }
+
+    /**
      * Checks if address can be reached using one argument InetAddress.isReachable() version
or ping command if failed.
      *
      * @param addr Address to check.
@@ -810,7 +820,7 @@ public class VisorTaskUtils {
      *
      * @param input Input bytes.
      * @return Zipped byte array.
-     * @throws java.io.IOException If failed.
+     * @throws IOException If failed.
      */
     public static byte[] zipBytes(byte[] input) throws IOException {
         return zipBytes(input, 4096);
@@ -822,7 +832,7 @@ public class VisorTaskUtils {
      * @param input Input bytes.
      * @param initBufSize Initial buffer size.
      * @return Zipped byte array.
-     * @throws java.io.IOException If failed.
+     * @throws IOException If failed.
      */
     public static byte[] zipBytes(byte[] input, int initBufSize) throws IOException {
         ByteArrayOutputStream bos = new ByteArrayOutputStream(initBufSize);


Mime
View raw message