Skip to content
This repository has been archived by the owner on May 30, 2024. It is now read-only.

allFlags() no longer returns null when client is offline #81

Merged
merged 4 commits into from
Dec 21, 2016

Conversation

drichelson
Copy link
Contributor

No description provided.

@@ -200,8 +200,7 @@ private void sendFlagRequestEvent(String featureKey, LDUser user, JsonElement va
@Override
public Map<String, JsonElement> allFlags(LDUser user) {
if (isOffline()) {
logger.warn("allFlags() was called when client is in offline mode! Returning null.");
return null;
logger.warn("allFlags() was called when client is in offline mode!");
Copy link
Contributor

Choose a reason for hiding this comment

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

This should probably be info at this point?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

..or debug. If you're here it means you've most likely intentionally set offline to true, and you'll end up with a bunch of these messages in your logs.

@jkodumal
Copy link
Contributor

👍

@drichelson drichelson merged commit 80b4185 into master Dec 21, 2016
@drichelson drichelson deleted the dr/allFlagsOffline branch December 21, 2016 19:55
eli-darkly added a commit that referenced this pull request Jul 17, 2018
avoid unnecessary retry after Redis update
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants