8000 Mng/pr 361 by mikeproeng37 · Pull Request #365 · optimizely/java-sdk · GitHub
[go: up one dir, main page]

Skip to content

Mng/pr 361 #365

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

Closed
wants to merge 3 commits into from
Closed
Changes from 1 commit
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
Next Next commit
(fix) change log level to warn when experiment not in datafile
  • Loading branch information
compass-vin committed Feb 26, 2020
commit 0d6976d517e433668eb1a7dd12120f0af9da4b01
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
0