modify hostname in notification mail
This commit is contained in:
parent
4c130567fe
commit
1ee8ef5794
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue