Skip to content

Commit 4c14473

Browse files
author
Dave Johnston
authored
Merge pull request #41 from davejohnston/maint/update_log
(maint) Update log message to add more context
2 parents 2ee8cfb + 7fcec10 commit 4c14473

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

evaluation/feature.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ func (fc FeatureConfig) GetVariationName(target *Target) string {
247247
for _, segmentIdentifier := range variationMap.TargetSegments {
248248
segment, ok := fc.Segments[segmentIdentifier]
249249
if !ok {
250-
log.Error("The segment in variation map is invalid")
250+
log.Errorf("The segment [%s] in variation map can not be found for feature %s in project %s", segmentIdentifier, fc.Feature, fc.Project)
251251
} else {
252252
if segment.Evaluate(target) {
253253
return variationMap.Variation

0 commit comments

Comments
 (0)