dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #04234
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 1402: Improved logging in dhis2-live.
------------------------------------------------------------
revno: 1402
committer: Lars Helge Oeverland <larshelge@xxxxxxxxx>
branch nick: trunk
timestamp: Fri 2010-02-05 22:22:23 +0100
message:
Improved logging in dhis2-live.
modified:
dhis-live/src/main/java/org/hisp/dhis/WebAppServer.java
--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk
Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription.
=== modified file 'dhis-live/src/main/java/org/hisp/dhis/WebAppServer.java'
--- dhis-live/src/main/java/org/hisp/dhis/WebAppServer.java 2010-01-08 22:42:23 +0000
+++ dhis-live/src/main/java/org/hisp/dhis/WebAppServer.java 2010-02-05 21:22:23 +0000
@@ -77,11 +77,13 @@
{
try {
- connector.setPort(this.getPortFromConfig(installDir + JETTY_PORT_CONF));
+ int portFromConfig = this.getPortFromConfig(installDir + JETTY_PORT_CONF);
+ connector.setPort(portFromConfig);
+ log.info("Loading DHIS 2 on port: " + portFromConfig );
} catch (Exception ex) {
log.info("Couldn't load port number from " + installDir + JETTY_PORT_CONF);
- log.info("Trying default of " + DEFAULT_JETTY_PORT);
connector.setPort(DEFAULT_JETTY_PORT);
+ log.info("Loading DHIS 2 on port: " + DEFAULT_JETTY_PORT );
}
server.setConnectors(new Connector[]{connector});