Add additional logging

* Log server connection failure
* More info on template substitution failure
This commit is contained in:
David Lewis 2017-08-16 11:17:44 -07:00
parent 020c509ef7
commit 5895ab633f
2 changed files with 5 additions and 1 deletions

View File

@ -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;

View File

@ -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)) {