Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix incorrect state when hostname resolution fails
This PR is much less ambitious than beam-telemetry#94. In this case, we just fix the issue when the process is already started, but an error in the resolution of the hostname leads to an incorrect internal state. Without this patch, the `new_state` will be `:ok`, as that is the return from the logger function. Afterwards, when going to the `terminate` callback, then we try to call `EventHandler.detach(state.handler_ids)`, which translates to `EventHandler.detach(:ok.handler_ids)` and fails
- Loading branch information