add log entry when disabled

This commit is contained in:
davidnewhall2 2020-02-02 19:05:40 -08:00
parent b9bca33aa0
commit ba0b901e96
1 changed files with 1 additions and 0 deletions

View File

@ -96,6 +96,7 @@ func init() {
// Should be run in a Go routine. Returns nil if not configured. // Should be run in a Go routine. Returns nil if not configured.
func (u *promUnifi) Run(c poller.Collect) error { func (u *promUnifi) Run(c poller.Collect) error {
if u.Config == nil || u.Disable { if u.Config == nil || u.Disable {
c.Logf("Prometheus config missing (or disabled), Prometheus HTTP listener disabled!")
return nil return nil
} }