diff --git a/Corona-Warn-App/src/main/java/de/rki/coronawarnapp/presencetracing/risk/calculation/CheckInWarningMatcher.kt b/Corona-Warn-App/src/main/java/de/rki/coronawarnapp/presencetracing/risk/calculation/CheckInWarningMatcher.kt index a1028997270316ed0920d52d7215d88feddb4b62..dbea86f030506c9c75fdd55e0fa6721f6abdaf66 100644 --- a/Corona-Warn-App/src/main/java/de/rki/coronawarnapp/presencetracing/risk/calculation/CheckInWarningMatcher.kt +++ b/Corona-Warn-App/src/main/java/de/rki/coronawarnapp/presencetracing/risk/calculation/CheckInWarningMatcher.kt @@ -5,6 +5,7 @@ import de.rki.coronawarnapp.presencetracing.checkins.CheckIn import de.rki.coronawarnapp.presencetracing.checkins.split.splitByMidnightUTC import de.rki.coronawarnapp.presencetracing.warning.storage.TraceWarningPackage import de.rki.coronawarnapp.server.protocols.internal.pt.TraceWarning +import de.rki.coronawarnapp.util.CWADebug import de.rki.coronawarnapp.util.coroutine.DispatcherProvider import de.rki.coronawarnapp.util.toOkioByteString import kotlinx.coroutines.CoroutineScope @@ -106,6 +107,9 @@ internal suspend fun findMatches( checkIns .mapNotNull { checkIn -> checkIn.calculateOverlap(warning, warningPackage.packageId).also { overlap -> + if (!CWADebug.isDebugBuildOrMode) { + return@also + } if (overlap == null) { Timber.tag(TAG).v("No match found for $checkIn and $warning") } else {