Skip to content

Commit

Permalink
improve logging output
Browse files Browse the repository at this point in the history
  • Loading branch information
s-l-teichmann committed Oct 17, 2023
1 parent 3923dc7 commit 8f6e6ee
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions cmd/csaf_aggregator/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -178,8 +178,9 @@ func (p *provider) ageAccept(c *config) func(time.Time) bool {
}

if c.Verbose {
s, _ := r.MarshalJSON()
log.Printf("Setting up filter to accept docs within TimeRange %s", s)
log.Printf(
"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
}
Expand Down
4 changes: 2 additions & 2 deletions cmd/csaf_downloader/downloader.go
Original file line number Diff line number Diff line change
Expand Up @@ -204,8 +204,8 @@ func (d *downloader) download(ctx context.Context, domain string) error {

// Do we need time range based filtering?
if d.cfg.Range != nil {
slog.Debug("Setting up filter to accept documents within",
"TimeRange", d.cfg.Range)
slog.Debug("Setting up filter to accept advisories within",
"timerange", d.cfg.Range)
afp.AgeAccept = d.cfg.Range.Contains
}

Expand Down

0 comments on commit 8f6e6ee

Please sign in to comment.