mirror of
https://github.com/gocsaf/csaf.git
synced 2025-12-23 00:32:55 +01:00
improve logging output
This commit is contained in:
parent
3923dc7044
commit
8f6e6ee8bb
2 changed files with 5 additions and 4 deletions
|
|
@ -178,8 +178,9 @@ func (p *provider) ageAccept(c *config) func(time.Time) bool {
|
||||||
}
|
}
|
||||||
|
|
||||||
if c.Verbose {
|
if c.Verbose {
|
||||||
s, _ := r.MarshalJSON()
|
log.Printf(
|
||||||
log.Printf("Setting up filter to accept docs within TimeRange %s", s)
|
"Setting up filter to accept advisories within time range %s to %s\n",
|
||||||
|
r[0].Format(time.RFC3339), r[1].Format(time.RFC3339))
|
||||||
}
|
}
|
||||||
return r.Contains
|
return r.Contains
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -204,8 +204,8 @@ func (d *downloader) download(ctx context.Context, domain string) error {
|
||||||
|
|
||||||
// Do we need time range based filtering?
|
// Do we need time range based filtering?
|
||||||
if d.cfg.Range != nil {
|
if d.cfg.Range != nil {
|
||||||
slog.Debug("Setting up filter to accept documents within",
|
slog.Debug("Setting up filter to accept advisories within",
|
||||||
"TimeRange", d.cfg.Range)
|
"timerange", d.cfg.Range)
|
||||||
afp.AgeAccept = d.cfg.Range.Contains
|
afp.AgeAccept = d.cfg.Range.Contains
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue