Skip to content
Snippets Groups Projects
Unverified Commit 06c550fb authored by Kolya Opahle's avatar Kolya Opahle Committed by GitHub
Browse files

Reduce Logs for production build (EXPOSUREAPP-6642) (#2927)

* CheckInWarningMatcher: Disabled logging of each overlap calculation in tester builds as this would log a huge amount of lines

* CheckInWarningMatcher: Fixed condition to disable logging if not in debug mode
parent 80b49ccd
No related branches found
No related tags found
No related merge requests found
......@@ -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 {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment