logging-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1581387 - /logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/net/SocketServer.java
Date Tue, 25 Mar 2014 15:53:41 GMT
Author: ggregory
Date: Tue Mar 25 15:53:41 2014
New Revision: 1581387

URL: http://svn.apache.org/r1581387
Log:
Better names.

Modified:
    logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/net/SocketServer.java

Modified: logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/net/SocketServer.java
URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/net/SocketServer.java?rev=1581387&r1=1581386&r2=1581387&view=diff
==============================================================================
--- logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/net/SocketServer.java
(original)
+++ logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/net/SocketServer.java
Tue Mar 25 15:53:41 2014
@@ -88,16 +88,16 @@ public class SocketServer extends LogEve
         if (args.length == 2 && args[1].length() > 0) {
             ConfigurationFactory.setConfigurationFactory(new ServerConfigurationFactory(args[1]));
         }
-        final SocketServer sserver = new SocketServer(port);
-        final Thread server = new Thread(sserver);
-        server.start();
+        final SocketServer socketServer = new SocketServer(port);
+        final Thread serverThread = new Thread(socketServer);
+        serverThread.start();
         final Charset enc = Charset.defaultCharset();
         final BufferedReader reader = new BufferedReader(new InputStreamReader(System.in,
enc));
         while (true) {
             final String line = reader.readLine();
             if (line == null || line.equalsIgnoreCase("Quit") || line.equalsIgnoreCase("Stop")
|| line.equalsIgnoreCase("Exit")) {
-                sserver.shutdown();
-                server.join();
+                socketServer.shutdown();
+                serverThread.join();
                 break;
             }
         }



Mime
View raw message