Permalink
Browse files

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

  • Loading branch information...
1 parent 2d60324 commit 61558d0fde0bc54c5e78ef872a02ece3081c77ac @tonyg tonyg committed Jul 12, 2009
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();

0 comments on commit 61558d0

Please sign in to comment.