Skip to content

Commit

Permalink
slog: Fix BADKEY for changed Error call
Browse files Browse the repository at this point in the history
  • Loading branch information
earthboundkid committed Dec 10, 2023
1 parent fb3c224 commit 56fb475
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions linkcheck/linkcheck.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ func (c *crawler) run() error {
if c.shouldArchive {
c.l.Info("start", "baseurl", c.base)
if errs := c.archiveAll(pages); errs != nil {
c.l.Error("error", errs)
c.l.Error("error", "error", errs)
} else {
c.l.Info("done")
}
Expand All @@ -177,7 +177,7 @@ func (c *crawler) crawl() (crawled crawledPages, cancelled bool) {
c.l.Debug("doFetch", "url", url)
links, ids, err := c.doFetch(ctx, url)
if err != nil {
c.l.Error("doFetch", err, "url", url)
c.l.Error("doFetch", "error", err, "url", url)
return &pageInfo{err: err}, err
}
c.l.Debug("doFetch done",
Expand Down

0 comments on commit 56fb475

Please sign in to comment.