Skip to content

Commit

Permalink
[FSSDK-9510]: Implements a warning log for polling interval below 30s (
Browse files Browse the repository at this point in the history
…#428)

* Implements a warning log for polling interval below 30s

* cleanup.
  • Loading branch information
yasirfolio3 authored Jul 18, 2023
1 parent c44f712 commit bf000e7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions optimizely/config_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,11 @@ def set_update_interval(self, update_interval: Optional[int | float]) -> None:
)
update_interval = enums.ConfigManager.DEFAULT_UPDATE_INTERVAL

if update_interval < 30:
self.logger.warning(
'Polling intervals below 30 seconds are not recommended.'
)

self.update_interval = update_interval

def set_blocking_timeout(self, blocking_timeout: Optional[int | float]) -> None:
Expand Down

0 comments on commit bf000e7

Please sign in to comment.