karaf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jans...@apache.org
Subject [1/2] karaf git commit: KARAF-4907 - bin/status logging WARN every time
Date Thu, 22 Dec 2016 20:48:58 GMT
Repository: karaf
Updated Branches:
  refs/heads/karaf-4.0.x 541aea543 -> c8662ad4d
  refs/heads/master cf0967f23 -> 7d7f7fba1


KARAF-4907 - bin/status logging WARN every time


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

Branch: refs/heads/master
Commit: 7d7f7fba127643f56b74a693e4b8f787e00c9c89
Parents: cf0967f
Author: Jonathan Anstey <janstey@gmail.com>
Authored: Thu Dec 22 17:18:17 2016 -0330
Committer: Jonathan Anstey <janstey@gmail.com>
Committed: Thu Dec 22 17:18:17 2016 -0330

----------------------------------------------------------------------
 .../java/org/apache/karaf/main/ShutdownSocketThread.java     | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/karaf/blob/7d7f7fba/main/src/main/java/org/apache/karaf/main/ShutdownSocketThread.java
----------------------------------------------------------------------
diff --git a/main/src/main/java/org/apache/karaf/main/ShutdownSocketThread.java b/main/src/main/java/org/apache/karaf/main/ShutdownSocketThread.java
index ae2ad54..982ff52 100644
--- a/main/src/main/java/org/apache/karaf/main/ShutdownSocketThread.java
+++ b/main/src/main/java/org/apache/karaf/main/ShutdownSocketThread.java
@@ -112,8 +112,10 @@ class ShutdownSocketThread extends Thread {
                     framework.stop();
                     break;
                 } else {
-                    LOG.log(Level.WARNING, "Karaf shutdown socket:  Invalid command '" +
-                                       command.toString() + "' received");
+                    if (!command.toString().isEmpty()) {
+                        LOG.log(Level.WARNING, "Karaf shutdown socket:  Invalid command '"
+
+                                      command.toString() + "' received");
+                    }
                 }
             }
         } catch (Exception e) {
@@ -127,4 +129,4 @@ class ShutdownSocketThread extends Thread {
         }
     }
 
-}
\ No newline at end of file
+}


Mime
View raw message