Skip to content

fix(flagd): add logging for invalid env var parsing failures#1790

Open
IshitaSharma08 wants to merge 2 commits into
open-feature:mainfrom
IshitaSharma08:add-env-var-error-logging
Open

fix(flagd): add logging for invalid env var parsing failures#1790
IshitaSharma08 wants to merge 2 commits into
open-feature:mainfrom
IshitaSharma08:add-env-var-error-logging

Conversation

@IshitaSharma08
Copy link
Copy Markdown

Added error logging when environment variable parsing fails in Config.java.

Previously invalid environment variables silently fell back to default values without notifying the user.
This change logs the parsing failure before returning the default value.

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request updates Config.java by reordering imports and adding error logging to the fallBackToEnvOrDefault method to improve observability when environment variable parsing fails. There are no review comments to address, and I have no further feedback to provide.

@IshitaSharma08 IshitaSharma08 changed the title Add logging for invalid environment variable parsing failures fix(flagd): add logging for invalid env var parsing failures May 9, 2026
Signed-off-by: Ishita Sharma <Ishitasharma050306@gmail.com>
@IshitaSharma08 IshitaSharma08 force-pushed the add-env-var-error-logging branch from f5072a5 to 1a8ad7e Compare May 9, 2026 09:33
import java.util.function.Function;
import java.util.stream.Collectors;

import dev.openfeature.contrib.providers.flagd.resolver.rpc.cache.CacheType;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Moving this import violates a checkstyle rule and makes the CI pipeline build fail. Please revert it or run spotless:apply

@chrfwow
Copy link
Copy Markdown
Contributor

chrfwow commented May 12, 2026

@IshitaSharma08 it seems like you forgot to sign-off at least one commit, that's why the DCO action fails. Please sign off your commits and force push them

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.

6 participants