circleci / rollcage

A Clojure client for Rollbar
Eclipse Public License 1.0
51 stars 28 forks source link

handle cases where local hostname cannot be resolved #5

Closed notnoopci closed 8 years ago

notnoopci commented 8 years ago

InetAddress/getLocalHost throws an exception if local hostname cannot be resolved - and the exception is thrown even if client function is explicitly passed a hostname value!

In such cases, this changes it so the passed hostname argument is honored -- otherwise, we keep hostname as nil.

kimh commented 8 years ago

LGTM