Add a debug message for re-auth

This commit is contained in:
David Newhall II 2019-08-25 18:07:16 -07:00
parent 406a1383b9
commit 13b417c52f
1 changed files with 1 additions and 0 deletions

View File

@ -50,6 +50,7 @@ func (u *UnifiPoller) PollController() error {
for u.LastCheck = range ticker.C {
var err error
if u.ReAuth {
u.LogDebugf("Re-authenticating to UniFi Controller")
// Some users need to re-auth every interval because the cookie times out.
if err = u.Login(); err != nil {
u.LogError(err, "re-authenticating")