https://github.com/Graylog2/collector-sidecar/blob/v2/superv/supervisor/supervisor.go#L785-L791 Since both of these need to be set, it would be nice if the error checking/reporting was also combined and not one after the other.