Skip to content

Commit

Permalink
EventDSL: explain silent catch of UnknownHostEx.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyle Kingsbury committed May 16, 2012
1 parent 9533c73 commit 9424186
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/com/aphyr/riemann/client/EventDSL.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ public EventDSL(AbstractRiemannClient client) {
try {
this.builder.setHost(java.net.InetAddress.getLocalHost().getHostName());
} catch (java.net.UnknownHostException e) {
// If we can't get the local host, a null host is perfectly acceptable.
// Caller will know soon enough. :)
}
}

Expand Down

0 comments on commit 9424186

Please sign in to comment.