You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@karaf.apache.org by jb...@apache.org on 2019/09/21 05:45:40 UTC

[karaf] branch karaf-4.2.x updated: [KARAF-6301] Add hostname:port log message when shutdown socket thread starts

This is an automated email from the ASF dual-hosted git repository.

jbonofre pushed a commit to branch karaf-4.2.x
in repository https://gitbox.apache.org/repos/asf/karaf.git


The following commit(s) were added to refs/heads/karaf-4.2.x by this push:
     new 6a68c96  [KARAF-6301] Add hostname:port log message when shutdown socket thread starts
6a68c96 is described below

commit 6a68c9699a5b28cba957b4b5cdb3f71debd6a750
Author: Jean-Baptiste Onofré <jb...@apache.org>
AuthorDate: Wed Sep 18 08:38:47 2019 +0200

    [KARAF-6301] Add hostname:port log message when shutdown socket thread starts
    
    (cherry picked from commit b582e669f87d1b8799d8d7ae4b5872a730e8a17d)
---
 main/src/main/java/org/apache/karaf/main/ShutdownSocketThread.java | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

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 260353d..68f8669 100644
--- a/main/src/main/java/org/apache/karaf/main/ShutdownSocketThread.java
+++ b/main/src/main/java/org/apache/karaf/main/ShutdownSocketThread.java
@@ -32,7 +32,7 @@ import org.osgi.framework.launch.Framework;
 
 class ShutdownSocketThread extends Thread implements AutoCloseable {
 
-	Logger LOG = Logger.getLogger(this.getClass().getName());
+	private final static Logger LOG = Logger.getLogger(ShutdownSocketThread.class.getName());
 
 	private final String shutdown;
     private Random random = null;
@@ -56,6 +56,7 @@ class ShutdownSocketThread extends Thread implements AutoCloseable {
 
     public void run() {
         try {
+            LOG.info("Shutdown socket thread is listening on " + shutdownSocket.getInetAddress().getHostAddress() + ":" + shutdownSocket.getLocalPort());
             while (true) {
                 // Wait for the next connection
                 Socket socket = null;