Skip to content

Commit

Permalink
fix: add warning log for targeted cohort missing
Browse files Browse the repository at this point in the history
  • Loading branch information
bgiori committed Aug 8, 2024
1 parent e53a46c commit d468d77
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/main/kotlin/cohort/CohortStorage.kt
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,11 @@ internal class InMemoryCohortStorage : CohortStorage {
val result = mutableSetOf<String>()
lock.read {
for (cohortId in cohortIds) {
val cohort = cohortStore[cohortId] ?: continue
val cohort = cohortStore[cohortId]
if (cohort == null) {
Logger.w("Targeted $groupType cohort $cohortId not found in storage.")
continue
}
if (cohort.groupType != groupType) {
continue
}
Expand Down

0 comments on commit d468d77

Please sign in to comment.