8000 (fix) change log level to warn when experiment not in datafile by compass-vin · Pull Request #361 · optimizely/java-sdk · GitHub
[go: up one dir, main page]

Skip to content

(fix) change log level to warn when experiment not in datafile #361

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 3 commits into from
Mar 30, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ public Experiment getExperimentForKey(@Nonnull String experimentKey,
// if the given experiment key isn't present in the config, log an exception to the error handler
if (experiment == null) {
String unknownExperimentError = String.format("Experiment \"%s\" is not in the datafile.", experimentKey);
logger.error(unknownExperimentError);
logger.warn(unknownExperimentError);
errorHandler.handleError(new UnknownExperimentException(unknownExperimentError));
}

Expand All @@ -247,7 +247,7 @@ public EventType getEventTypeForName(String eventName, ErrorHandler errorHandler
// if the given event name isn't present in the config, log an exception to the error handler
if (eventType == null) {
String unknownEventTypeError = String.format("Event \"%s\" is not in the datafile.", eventName);
logger.error(unknownEventTypeError);
logger.warn(unknownEventTypeError);
errorHandler.handleError(new UnknownEventTypeException(unknownEventTypeError));
}

Expand Down
6 changes: 3 additions & 3 deletions