mirror of https://github.com/FreeCol/freecol.git
Add additional logging
* Log server connection failure * More info on template substitution failure
This commit is contained in:
parent
020c509ef7
commit
5895ab633f
|
@ -101,6 +101,9 @@ public final class ConnectController extends FreeColClientHolder {
|
|||
err = StringTemplate.template("server.couldNotConnect");
|
||||
}
|
||||
} catch (Exception ex) {
|
||||
logger.severe("Server could not connect to "
|
||||
+ host + ":" + port
|
||||
+ " as " + user);
|
||||
err = FreeCol.errorFromException(ex, "server.couldNotConnect");
|
||||
}
|
||||
return err;
|
||||
|
|
|
@ -869,7 +869,8 @@ public class Messages {
|
|||
} else {
|
||||
logger.warning("Choice substitution for "
|
||||
+ selector + "/" + otherKey
|
||||
+ " attempted, but template was " + replacement);
|
||||
+ " attempted, but template was " + replacement
|
||||
+ " for input " + input);
|
||||
continue;
|
||||
}
|
||||
} else if (containsKey(otherKey)) {
|
||||
|
|
Loading…
Reference in New Issue