timetable-extension #1

Open
fred.boniface wants to merge 160 commits from timetable-extension into main
Showing only changes of commit 9ef9429511 - Show all commits

View File

@ -69,6 +69,7 @@ func runCifFullDownload(cfg *helpers.Configuration) error {
// Runs a CIF Update for up to five days
func runCifUpdateDownload(cfg *helpers.Configuration, metadata *dbAccess.CifMetadata, days []time.Time) error {
startTime := time.Now()
log.Info("Downloading CIF Updates")
// Loop over dates
@ -115,6 +116,9 @@ func runCifUpdateDownload(cfg *helpers.Configuration, metadata *dbAccess.CifMeta
log.Warn("CIF Data updated, but metadata write failed.")
}
endTime := time.Now()
duration := startTime.Sub(endTime)
log.Info("CIF Update process ended", zap.Duration("duration", duration))
return nil
}