modify hostname in notification mail

This commit is contained in:
Shinsuke Sugaya 2016-01-07 08:35:21 +09:00
parent 4c130567fe
commit 1ee8ef5794

View file

@ -281,9 +281,9 @@ public class Crawler implements Serializable {
}
try {
dataMap.put("hostname", InetAddress.getLocalHost().getHostAddress());
dataMap.put("hostname", InetAddress.getLocalHost().toString());
} catch (final UnknownHostException e) {
// ignore
dataMap.put("hostname", "Unknown");
}
logger.debug("\ninfoMap: {}\ndataMap: {}", infoMap, dataMap);