Skip to content

[FSSDK-9508] refact: Implements a warning log for polling interval less than 30s #515

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 13, 2023

Conversation

yasirfolio3
Copy link
Contributor

Summary

  • Implements a warning log for polling interval less than 30s

Issues

Copy link

@mikechu-optimizely mikechu-optimizely left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@@ -128,6 +129,7 @@ extension LogMessage: CustomStringConvertible {
case .failedToConvertMapToString: message = "Provided map could not be converted to string."
case .failedToAssignValue: message = "Value for path could not be assigned to provided type."
case .valueForKeyNotFound(let key): message = "Value for JSON key (\(key)) not found."
case .lowPeriodicDownloadInterval: message = "Polling interval below 30s can create high number of requests."

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What do you think about "Polling intervals below 30 seconds are not recommended."?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds good to me.

@yasirfolio3 yasirfolio3 merged commit 51d33b6 into master Jul 13, 2023
@yasirfolio3 yasirfolio3 deleted the yasir/FSSDK-9508 branch July 13, 2023 19:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants