Add logging for failed CIF index creation
All checks were successful
Go Test / test (push) Successful in 31s

This commit is contained in:
Fred Boniface 2024-04-23 15:23:59 +01:00
parent 9e65b66474
commit 16bff981cc

View File

@ -52,7 +52,10 @@ func runCifFullDownload(cfg *helpers.Configuration) error {
parsed = nil
// Create Indexes
dbAccess.CreateTimetableIndexes()
err = dbAccess.CreateTimetableIndexes()
if err != nil {
log.Warn("Error creating timetable indexes, degraded performance", zap.Error(err))
}
postTime := time.Now()
updateDuration := postTime.Sub(preTime)