Add logging for unknown CIF data types
All checks were successful
Go Test / test (push) Successful in 23s

This commit is contained in:
Fred Boniface 2024-04-10 23:05:19 +01:00
parent 751b67e61e
commit fb510e1408

View File

@ -42,6 +42,9 @@ func parseCifDataStream(dataStream io.ReadCloser) (*parsedData, error) {
continue continue
} }
parsed.header = timetable parsed.header = timetable
case "TiplocV1":
// This data is not used and is sourced from CORPUS
continue
case "JsonAssociationV1": case "JsonAssociationV1":
// Association data is not currently used // Association data is not currently used
// but may be used in the future // but may be used in the future
@ -53,6 +56,8 @@ func parseCifDataStream(dataStream io.ReadCloser) (*parsedData, error) {
continue continue
} }
parsed.sched = append(parsed.sched, schedule) parsed.sched = append(parsed.sched, schedule)
default:
log.Msg.Warn("Unknown CIF Data type", zap.String("key", key))
} }
} }
} }