add more debug logs

This commit is contained in:
davidnewhall2 2019-09-03 01:03:21 -07:00
parent 5394a503c7
commit d08d9f5244
2 changed files with 2 additions and 0 deletions

View File

@ -119,5 +119,6 @@ func (u *UnifiPoller) GetUnifi() (err error) {
if err != nil {
return fmt.Errorf("unifi controller: %v", err)
}
u.LogDebugf("Authenticated with controller successfully")
return u.CheckSites()
}

View File

@ -16,6 +16,7 @@ func (u *UnifiPoller) CheckSites() error {
if strings.Contains(strings.ToLower(u.Config.Mode), "lambda") {
return nil // Skip this in lambda mode.
}
u.LogDebugf("Checking Controller Sites List")
sites, err := u.Unifi.GetSites()
if err != nil {
return err