Skip to content

Commit ae32e2d

Browse files
committed
chore: add scrape log
1 parent 3478a6f commit ae32e2d

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

capture/capture.go

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,17 @@ func (c *Capture) processOneFile(ctx context.Context, fc *model.FileContext) err
257257
}
258258
log.Debug("step end")
259259
}
260-
logger.Info("process succ")
260+
logger.Info("process succ",
261+
zap.String("number_id", fc.Number.GetNumberID()),
262+
zap.String("scrape_source", fc.Meta.ExtInfo.ScrapeInfo.Source),
263+
zap.String("release_date", utils.FormatTimeToDate(fc.Meta.ReleaseDate)),
264+
zap.Int("duration", int(fc.Meta.Duration)),
265+
zap.Int("sample_img_cnt", len(fc.Meta.SampleImages)),
266+
zap.Strings("genres", fc.Meta.Genres),
267+
zap.Strings("actors", fc.Meta.Actors),
268+
zap.String("title", fc.Meta.Title),
269+
zap.String("plot", fc.Meta.Plot),
270+
)
261271
return nil
262272
}
263273

0 commit comments

Comments
 (0)