Better log

master
bel 2019-09-11 20:53:46 -06:00
parent db79a43e95
commit 6ce1197f72
2 changed files with 2 additions and 17 deletions

View File

@ -84,9 +84,10 @@ func (f *Feed) Pull() error {
continue
}
if ok := regexp.MustCompile(f.TitleFilter).MatchString(item.Title); !ok {
log.Println("[Pull]", "Skipping bad titled item")
log.Printf("[Pull] Skipping bad titled item: %v doesn't match /%v/", item.Title, f.TitleFilter)
continue
}
log.Printf("[Pull] Saving item %v for %v /%v/", f.Key, f.URL, f.TitleFilter)
if err := item.save(f.Key); err != nil {
log.Println("[Pull]", err)
continue

16
tmpUuCa
View File

@ -1,16 +0,0 @@
FROM alpine as certs
RUN apk update && apk add --no-cache ca-certificates
FROM busybox:glibc
RUN mkdir -p /var/log
WORKDIR /main
COPY --from=certs /etc/ssl/certs /etc/ssl/certs
COPY . .
ENV GOPATH=""
ENV MNT="/mnt/"
ENTRYPOINT ["/main/exec-rssmon3"]
CMD []