Skip to content

Commit

Permalink
chore: add scrape log
Browse files Browse the repository at this point in the history
  • Loading branch information
xxxsen committed Aug 20, 2024
1 parent 3478a6f commit ae32e2d
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion capture/capture.go
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,17 @@ func (c *Capture) processOneFile(ctx context.Context, fc *model.FileContext) err
}
log.Debug("step end")
}
logger.Info("process succ")
logger.Info("process succ",
zap.String("number_id", fc.Number.GetNumberID()),
zap.String("scrape_source", fc.Meta.ExtInfo.ScrapeInfo.Source),
zap.String("release_date", utils.FormatTimeToDate(fc.Meta.ReleaseDate)),
zap.Int("duration", int(fc.Meta.Duration)),
zap.Int("sample_img_cnt", len(fc.Meta.SampleImages)),
zap.Strings("genres", fc.Meta.Genres),
zap.Strings("actors", fc.Meta.Actors),
zap.String("title", fc.Meta.Title),
zap.String("plot", fc.Meta.Plot),
)
return nil
}

Expand Down

0 comments on commit ae32e2d

Please sign in to comment.