add log entry when disabled
This commit is contained in:
parent
b9bca33aa0
commit
ba0b901e96
|
|
@ -96,6 +96,7 @@ func init() {
|
|||
// Should be run in a Go routine. Returns nil if not configured.
|
||||
func (u *promUnifi) Run(c poller.Collect) error {
|
||||
if u.Config == nil || u.Disable {
|
||||
c.Logf("Prometheus config missing (or disabled), Prometheus HTTP listener disabled!")
|
||||
return nil
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue