Skip to content

Commit

Permalink
refactor(ItineraryExistence): Combine 3 log statements into one.
Browse files Browse the repository at this point in the history
  • Loading branch information
binh-dam-ibigroup committed Nov 5, 2024
1 parent bebd4e9 commit 6f0de6e
Showing 1 changed file with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -249,9 +249,14 @@ public void checkExistence(MonitoredTrip trip) {

/** Log instances of itinerary not found. */
public static void logItineraryNotFound(String message, MonitoredTrip trip, TripPlan plan, Logger logger) {
logger.warn("{} - trip {} - params: {}", message, trip.id, JsonUtils.toJson(trip.otp2QueryParams));
logger.warn("{} - trip {} - saved itinerary: {}", message, trip.id, JsonUtils.toJson(trip.itinerary));
logger.warn("{} - trip {} - OTP itineraries: {}", message, trip.id, JsonUtils.toJson(plan.itineraries));
logger.warn(
"{} - Trip {} - Params: {} - Saved itinerary: {} - OTP itineraries: {}",
message,
trip.id,
JsonUtils.toJson(trip.otp2QueryParams),
JsonUtils.toJson(trip.itinerary),
JsonUtils.toJson(plan.itineraries)
);
}

private static OtpResponse getOtpResponse(OtpRequest otpRequest) {
Expand Down

0 comments on commit 6f0de6e

Please sign in to comment.