forked from I2P_Developers/i2p.i2p
set mode_paranoid=true
This commit is contained in:
@@ -102,6 +102,14 @@ public class TunnelController implements Logging {
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public void startTunnel() {
|
public void startTunnel() {
|
||||||
|
try {
|
||||||
|
doStartTunnel();
|
||||||
|
} catch (Exception e) {
|
||||||
|
_log.error("Error starting up the tunnel", e);
|
||||||
|
log("Error starting up the tunnel - " + e.getMessage());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
private void doStartTunnel() {
|
||||||
if (_running) {
|
if (_running) {
|
||||||
if (_log.shouldLog(Log.INFO))
|
if (_log.shouldLog(Log.INFO))
|
||||||
_log.info("Already running");
|
_log.info("Already running");
|
||||||
@@ -121,7 +129,7 @@ public class TunnelController implements Logging {
|
|||||||
} else if ("server".equals(type)) {
|
} else if ("server".equals(type)) {
|
||||||
startServer();
|
startServer();
|
||||||
} else {
|
} else {
|
||||||
if (_log.shouldLog(Log.WARN))
|
if (_log.shouldLog(Log.ERROR))
|
||||||
_log.error("Cannot start tunnel - unknown type [" + type + "]");
|
_log.error("Cannot start tunnel - unknown type [" + type + "]");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user