Skip to content

Commit

Permalink
Change logging in transfer calculations.
Browse files Browse the repository at this point in the history
  • Loading branch information
VillePihlava committed Dec 11, 2024
1 parent 984d34e commit 3ae6eed
Showing 1 changed file with 7 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -209,21 +209,17 @@ public void buildGraph() {
nTransfersTotal,
nLinkedStops
);
for (StreetMode mode : transferRequests
transferRequests
.stream()
.map(transferProfile -> transferProfile.journey().transfer().mode())
.distinct()
.toList()) {
LOG.info(
"Created {} transfers for mode {}.",
transfersByStop
.values()
.stream()
.filter(pathTransfer -> pathTransfer.getModes().contains(mode))
.count(),
mode
.forEach(mode ->
LOG.info(
"Created {} transfers for mode {}.",
timetableRepository.getTransfersByMode(mode).size(),
mode
)
);
}
}

/**
Expand Down

0 comments on commit 3ae6eed

Please sign in to comment.