better startup log

This commit is contained in:
David Newhall II 2021-03-21 23:51:28 -07:00
parent ff5b52e142
commit 06f0d25e65
1 changed files with 2 additions and 1 deletions

View File

@ -77,7 +77,8 @@ func init() { // nolint: gochecknoinits
func (u *InfluxUnifi) PollController() {
interval := u.Interval.Round(time.Second)
ticker := time.NewTicker(interval)
log.Printf("[INFO] Everything checks out! Poller started, InfluxDB interval: %v", interval)
log.Printf("[INFO] Poller->InfluxDB started, interval: %v, dp: %v, db: %s, url: %s",
interval, u.DeadPorts, u.DB, u.URL)
for u.LastCheck = range ticker.C {
metrics, err := u.Collector.Metrics(&poller.Filter{Name: "unifi"})