Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Move logging to a point where it can report the port number

  • Loading branch information...
commit 61558d0fde0bc54c5e78ef872a02ece3081c77ac 1 parent 2d60324
@tonyg tonyg authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 priv/java/net/reversehttp/examples/TestNormalHttpService.java
View
4 priv/java/net/reversehttp/examples/TestNormalHttpService.java
@@ -15,10 +15,10 @@
public class TestNormalHttpService implements RequestHandler {
public static void main(String[] args) {
configureLogging();
- Logger.getLogger(TestReverseHttpService.class.getName()).log(
- Level.FINE, "Starting");
try {
int port = (args.length > 0) ? Integer.parseInt(args[0]) : 8000;
+ Logger.getLogger(TestReverseHttpService.class.getName()).log
+ (Level.FINE, "Starting on port " + port);
HttpServer httpd = new NormalHttpServer(port,
new TestNormalHttpService());
httpd.serve();
Please sign in to comment.
Something went wrong with that request. Please try again.