lowercase server.hostname in english
diff --git a/src/com/google/enterprise/adaptor/Config.java b/src/com/google/enterprise/adaptor/Config.java
index 5462df3..0dd9f83 100644
--- a/src/com/google/enterprise/adaptor/Config.java
+++ b/src/com/google/enterprise/adaptor/Config.java
@@ -153,7 +153,7 @@
String hostname = null;
try {
hostname = InetAddress.getLocalHost().getCanonicalHostName();
- hostname = hostname.toLowerCase(); // work around GSA 7.0 bug
+ hostname = hostname.toLowerCase(Locale.ENGLISH); // work around GSA 7.0
} catch (UnknownHostException ex) {
// Ignore
}
@@ -305,7 +305,7 @@
/** Default is lowercase of InetAddress.getLocalHost().getHostName(). */
String getServerHostname() {
String hostname = getValue("server.hostname");
- log.log(Level.FINER, "server hostname: " + hostname);
+ log.log(Level.FINER, "server hostname: {0}", hostname);
return hostname;
}