Skip to content

Commit 96073ad

Browse files
authored
Merge pull request opentripplanner#6914 from entur/reduce_gbfs_log_verbosity
Reduce log verbosity in GBFS station mapper
2 parents 8d33b0e + 2de89e5 commit 96073ad

2 files changed

Lines changed: 8 additions & 12 deletions

File tree

application/src/main/java/org/opentripplanner/updater/vehicle_rental/datasources/gbfs/v2/GbfsStationInformationMapper.java

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,10 @@ public VehicleRentalStation mapStationInformation(GBFSStation station) {
4343
station.getLon() == null ||
4444
station.getLat() == null
4545
) {
46-
LOG.info(
47-
String.format(
48-
"GBFS station for %s system has issues with required fields: \n%s",
49-
system.systemId(),
50-
station
51-
)
46+
LOG.debug(
47+
"GBFS station for {} system has issues with required fields: \n{}",
48+
system.systemId(),
49+
station
5250
);
5351
return null;
5452
}

application/src/main/java/org/opentripplanner/updater/vehicle_rental/datasources/gbfs/v3/GbfsStationInformationMapper.java

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,10 @@ public VehicleRentalStation mapStationInformation(GBFSStation station) {
4444
station.getLon() == null ||
4545
station.getLat() == null
4646
) {
47-
LOG.info(
48-
String.format(
49-
"GBFS station for %s system has issues with required fields: \n%s",
50-
system.systemId(),
51-
station
52-
)
47+
LOG.debug(
48+
"GBFS station for {} system has issues with required fields: \n{}",
49+
system.systemId(),
50+
station
5351
);
5452
return null;
5553
}

0 commit comments

Comments
 (0)