Skip to content

Commit

Permalink
add debug log for setting keepalive, relogin intervals
Browse files Browse the repository at this point in the history
  • Loading branch information
rlippmann committed Sep 28, 2023
1 parent 3b4e353 commit 1af0139
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pyadtpulse/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,7 @@ def relogin_interval(self, interval: int) -> None:
with self._attribute_lock:
self._check_keepalive_relogin_intervals(interval, self._relogin_interval)
self._relogin_interval = interval
LOG.debug(f"relogin interval set to {self._relogin_interval}")

@property
def keepalive_interval(self) -> int:
Expand All @@ -284,6 +285,7 @@ def keepalive_interval(self, interval: int) -> None:
with self._attribute_lock:
self._check_keepalive_relogin_intervals(self._keepalive_interval, interval)
self._keepalive_interval = interval
LOG.debug(f"keepalive interval set to {self._keepalive_interval}")

async def _update_sites(self, soup: BeautifulSoup) -> None:
with self._attribute_lock:
Expand Down

0 comments on commit 1af0139

Please sign in to comment.