ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sboi...@apache.org
Subject [39/50] incubator-ignite git commit: Added support of "-v" for VisorConsole.
Date Wed, 29 Apr 2015 13:14:59 GMT
Added support of "-v" for VisorConsole.


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

Branch: refs/heads/ignite-786
Commit: 3a2e2d21e5a56bfca66fe054c47a40a0c1fa25a7
Parents: 8d5121a
Author: AKuznetsov <akuznetsov@gridgain.com>
Authored: Tue Apr 28 21:33:38 2015 +0700
Committer: AKuznetsov <akuznetsov@gridgain.com>
Committed: Tue Apr 28 21:33:38 2015 +0700

----------------------------------------------------------------------
 .../src/main/scala/org/apache/ignite/visor/visor.scala        | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/3a2e2d21/modules/visor-console/src/main/scala/org/apache/ignite/visor/visor.scala
----------------------------------------------------------------------
diff --git a/modules/visor-console/src/main/scala/org/apache/ignite/visor/visor.scala b/modules/visor-console/src/main/scala/org/apache/ignite/visor/visor.scala
index c24cc13..356c80a 100644
--- a/modules/visor-console/src/main/scala/org/apache/ignite/visor/visor.scala
+++ b/modules/visor-console/src/main/scala/org/apache/ignite/visor/visor.scala
@@ -1665,10 +1665,9 @@ object visor extends VisorTag {
         // Make sure visor starts without shutdown hook.
         System.setProperty(IGNITE_NO_SHUTDOWN_HOOK, "true")
 
-        sys.props.get(IGNITE_QUIET).map(_.toBoolean) match {
-            case Some(true) =>  // Node will print to Visor console in verbose mode..
-            case _ => cfg.setGridLogger(new NullLogger) // Set NullLoger in quite mode.
-        }
+        // Set NullLoger in quite mode.
+        if ("true".equalsIgnoreCase(sys.props.getOrElse(IGNITE_QUIET, "true")))
+            cfg.setGridLogger(new NullLogger)
 
         val startedGridName = try {
              Ignition.start(cfg).name


Mime
View raw message