Fix logging of failed VSTP messages
All checks were successful
Go Test / test (push) Successful in 43s

This commit is contained in:
Fred Boniface 2024-04-28 11:52:00 +01:00
parent 2adb82a1b3
commit 5b1ab9b12f
3 changed files with 3 additions and 3 deletions

View File

@ -3,7 +3,7 @@ WORKDIR /source
COPY . . COPY . .
RUN go build . RUN go build .
FROM scratch FROM alpine:latest
COPY --from=builder /source/timetable-mgr /bin/timetable-mgr COPY --from=builder /source/timetable-mgr /bin/timetable-mgr
USER 20400 USER 20400
CMD [ "/bin/timetable-mgr" ] CMD [ "/bin/timetable-mgr" ]

View File

@ -6,7 +6,7 @@ import (
// Version Constants // Version Constants
const versionNum string = "2024.04.0" const versionNum string = "2024.04.0"
const versionSuffix string = "rc2" const versionSuffix string = "beta2"
const Version string = versionNum + "-" + versionSuffix const Version string = versionNum + "-" + versionSuffix
// Environment Variables // Environment Variables

View File

@ -18,7 +18,7 @@ func handle(msg *stomp.Message) {
err, convertedType := convertCifType(schedule) err, convertedType := convertCifType(schedule)
if err != nil { if err != nil {
log.Error("Error converting VSTP to CIF", zap.Error(err)) log.Error("Error converting VSTP to CIF", zap.Error(err))
fmt.Println(msg.Body) fmt.Println(string(msg.Body))
return return
} }
err = processCifData(convertedType) err = processCifData(convertedType)