Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id B5F4B200BE3 for ; Thu, 22 Dec 2016 21:48:59 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id B19D0160B27; Thu, 22 Dec 2016 20:48:59 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 0F974160B1B for ; Thu, 22 Dec 2016 21:48:58 +0100 (CET) Received: (qmail 11257 invoked by uid 500); 22 Dec 2016 20:48:58 -0000 Mailing-List: contact commits-help@karaf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@karaf.apache.org Delivered-To: mailing list commits@karaf.apache.org Received: (qmail 11242 invoked by uid 99); 22 Dec 2016 20:48:58 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Dec 2016 20:48:58 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 185E1DFCF4; Thu, 22 Dec 2016 20:48:58 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: janstey@apache.org To: commits@karaf.apache.org Date: Thu, 22 Dec 2016 20:48:58 -0000 Message-Id: <8f80e3fb441949d187604705faf8e444@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [1/2] karaf git commit: KARAF-4907 - bin/status logging WARN every time archived-at: Thu, 22 Dec 2016 20:48:59 -0000 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 Authored: Thu Dec 22 17:18:17 2016 -0330 Committer: Jonathan Anstey 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 +}