diff --git a/cmd/podsync/updater.go b/cmd/podsync/updater.go index f148761..bc30372 100644 --- a/cmd/podsync/updater.go +++ b/cmd/podsync/updater.go @@ -143,10 +143,10 @@ func (u *Updater) downloadEpisodes(ctx context.Context, feedConfig *config.Feed) if feedConfig.Filters.Title != "" { matched, err := regexp.MatchString(feedConfig.Filters.Title, episode.Title) if err != nil { - log.Warnf("Pattern '%s' is not a valid filter for %s Title", feedConfig.Filters.Title, feedConfig.ID) + log.Warnf("pattern %q is not a valid filter for %q Title", feedConfig.Filters.Title, feedConfig.ID) } else { if !matched { - log.Infof("Skipping '%s' due to lack of match with '%s'", episode.Title, feedConfig.Filters.Title) + log.Infof("skipping %q due to lack of match with %q", episode.Title, feedConfig.Filters.Title) return nil } } @@ -158,7 +158,7 @@ func (u *Updater) downloadEpisodes(ctx context.Context, feedConfig *config.Feed) return nil } - log.Debugf("adding %s (%q) to the list", episode.ID, episode.Title) + log.Debugf("adding %s (%q) to queue", episode.ID, episode.Title) downloadList = append(downloadList, episode) return nil }); err != nil { @@ -240,7 +240,6 @@ func (u *Updater) downloadEpisodes(ctx context.Context, feedConfig *config.Feed) logger.WithError(err).Error("failed to copy file") return err } - logger.Debugf("copied %d bytes", fileSize) // Update file status in database diff --git a/pkg/fs/local.go b/pkg/fs/local.go index 3be4d5e..12d5827 100644 --- a/pkg/fs/local.go +++ b/pkg/fs/local.go @@ -32,7 +32,7 @@ func NewLocal(rootDir string, hostname string) (*Local, error) { func (l *Local) Create(ctx context.Context, ns string, fileName string, reader io.Reader) (int64, error) { var ( - logger = log.WithField("feed_id", ns).WithField("episode_id", fileName) + logger = log.WithField("episode_id", fileName) feedDir = filepath.Join(l.rootDir, ns) )