Skip to content

Commit

Permalink
[FSSDK-9509] Update http_project_config_manager.rb with soft log warn…
Browse files Browse the repository at this point in the history
…ing about polling interval < 30s (#338)

* Update http_project_config_manager.rb

Add soft warning that polling interval under 30 s is not recommended.

* Update w single quotes

* Update http_project_config_manager.rb

* Update WARNING to WARN

* Update lib/optimizely/config_manager/http_project_config_manager.rb

Co-authored-by: Andy Leap <[email protected]>

---------

Co-authored-by: Andy Leap <[email protected]>
  • Loading branch information
Mat001 and andrewleap-optimizely authored Sep 25, 2023
1 parent d2c1da5 commit 85512a2
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/optimizely/config_manager/http_project_config_manager.rb
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,13 @@ def polling_interval(polling_interval)
return
end

if polling_interval < 30
@logger.log(
Logger::WARN,
'Polling intervals below 30 seconds are not recommended.'
)
end

@polling_interval = polling_interval
end

Expand Down

0 comments on commit 85512a2

Please sign in to comment.