Skip to content

Commit

Permalink
Only log if not empty list
Browse files Browse the repository at this point in the history
  • Loading branch information
tu55eladd committed Nov 17, 2023
1 parent c11c0a2 commit c5bffe9
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,10 @@ class MigreringService (
val (etterMedRiktigStatus, etterMedFeilStatus) = migrert.partition { it.second == MigreringsStatus.MigrertRiktigStatus }
val antallMigrertMedRiktigStatus = etterMedRiktigStatus.groupBy { it.first.type }.mapValues { it.value.size }
val antallMigrertMedFeilStatus = etterMedFeilStatus.groupBy { it.first.type }.mapValues { it.value.size }
log.info("Migrerte aktiviteter med feil status: ${etterMedFeilStatus.joinToString(",") { it.first.id }}")
val feilStatusIdEr = etterMedFeilStatus.joinToString(",") { it.first.id }
if (feilStatusIdEr.isNotEmpty()) {
log.info("Migrerte aktiviteter med feil status: $feilStatusIdEr")
}
ArenaAktivitetTypeDTO.values()
.map {
val totaltFoer = antallFoer[it] ?: 0
Expand Down

0 comments on commit c5bffe9

Please sign in to comment.