Skip to content

Commit

Permalink
modify hostname in notification mail
Browse files Browse the repository at this point in the history
  • Loading branch information
marevol committed Jan 6, 2016
1 parent 4c13056 commit 1ee8ef5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/org/codelibs/fess/exec/Crawler.java
Original file line number Diff line number Diff line change
Expand Up @@ -281,9 +281,9 @@ protected void sendMail(final Map<String, String> infoMap) {
}

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);
Expand Down

0 comments on commit 1ee8ef5

Please sign in to comment.