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

Commit 0ce65a3

Browse files
authored
include featureKey in wrong type log
1 parent cbec479 commit 0ce65a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/launchdarkly/sdk/server/LDClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -537,7 +537,7 @@ private EvalResultAndFlag evalAndFlag(String featureKey, LDContext context, LDVa
537537
if (requireType != null &&
538538
!value.isNull() &&
539539
value.getType() != requireType) {
540-
evaluationLogger.error("Feature flag evaluation expected result as {}, but got {}", defaultValue.getType(), value.getType());
540+
evaluationLogger.error("Feature flag \"{}\"; evaluation expected result as {}, but got {}", featureKey, defaultValue.getType(), value.getType());
541541
recordEvaluationErrorEvent(featureFlag, context, defaultValue, EvaluationReason.ErrorKind.WRONG_TYPE, withDetail);
542542
return new EvalResultAndFlag(errorResult(EvaluationReason.ErrorKind.WRONG_TYPE, defaultValue), featureFlag);
543543
}

0 commit comments

Comments
 (0)