Skip to content

Commit

Permalink
flightdata-skyalps: reduce logging | 4
Browse files Browse the repository at this point in the history
  • Loading branch information
dulvui committed Dec 6, 2022
1 parent e1a70f8 commit 2c9613e
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,20 +79,20 @@ public CommandLineRunner runner(RestTemplate clients, boolean ssim) throws Excep
calTo.add(Calendar.DATE, DAYS_AFTER);
Date fltsFROMperiod = calFrom.getTime();
Date fltsTOperiod = calTo.getTime();
LOG.info("Date flight retrieval will start from {} to {}", fltsFROMperiod, fltsTOperiod);
LOG.debug("Date flight retrieval will start from {} to {}", fltsFROMperiod, fltsTOperiod);
return args -> {
AeroCRSGetScheduleSuccessResponse result = AeroCRSRest.getSchedule(clients, fltsFROMperiod, fltsTOperiod,
IATA, BN, false, ssim);
LOG.info("The Result is " + result.getAerocrs());
LOG.info("The result AeroCRS is " + result.getAerocrs());
LOG.debug("The Result is " + result.getAerocrs());
LOG.debug("The result AeroCRS is " + result.getAerocrs());
if (result.getAerocrs() instanceof AeroCRSGetScheduleSuccess) {
AeroCRSGetScheduleSuccess success = (AeroCRSGetScheduleSuccess) result.getAerocrs();
LOG.info("AeroCRSGetScheduleSuccess: " + success);
LOG.debug("AeroCRSGetScheduleSuccess: " + success);
if (success.isSuccess()) {
for (AeroCRSFlight flight : success.getFlight()) {
LOG.info("Flights: " + flight);
LOG.debug("Flights: " + flight);
}
LOG.info("Result are displayed...moving on sync and push flights: ");
LOG.debug("Result are displayed...moving on sync and push flights: ");
try {
sync.syncJobStations();

Expand Down

0 comments on commit 2c9613e

Please sign in to comment.