Skip to content

Commit c549718

Browse files
authored
fix: remove logs for not supporting sticky assignments in fetching the state (#293)
remove logs
1 parent e45cb14 commit c549718

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

openfeature-provider-local/src/main/java/com/spotify/confidence/FlagsAdminStateFetcher.java

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@ public void reload() {
7575

7676
try {
7777
final AccountState newAccountState = fetchState();
78-
newAccountState.flags().forEach(this::logIfSticky);
7978
newAccountStates.put(accountName, newAccountState);
8079
secrets.putAll(newAccountState.secrets());
8180
} catch (Exception e) {
@@ -87,13 +86,6 @@ public void reload() {
8786
healthStatus.setStatus(HealthCheckResponse.ServingStatus.SERVING);
8887
}
8988

90-
private void logIfSticky(String s, Flag flag) {
91-
if (flag.getRulesList().stream().anyMatch(Flag.Rule::hasMaterializationSpec)) {
92-
logger.warn(
93-
"Flag {} is sticky, sticky assignments are not supported in the local resolve", s);
94-
}
95-
}
96-
9789
private ResolverStateUriResponse getResolverFileUri() {
9890
final Instant now = Instant.now();
9991
if (resolverStateUriResponse.get() == null

0 commit comments

Comments
 (0)