Skip to content

Commit

Permalink
for now
Browse files Browse the repository at this point in the history
  • Loading branch information
icco committed Jun 21, 2021
1 parent 6ccffc5 commit 0850b87
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions config.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package hayden
import (
"context"
"encoding/json"
"fmt"

"go.uber.org/zap"
)
Expand Down Expand Up @@ -32,7 +31,8 @@ func (cf *ConfigFile) ScrapeTargets(ctx context.Context) error {
for _, t := range cf.Targets {
match, err := t.Scan(ctx, cf.Config)
if err != nil {
return fmt.Errorf("error on target %+v: %w", t, err)
cf.Config.Log.Errorw("error on target", "target", t, zap.Error(err))
continue
}

if match {
Expand Down
2 changes: 1 addition & 1 deletion scrape.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ func (cfg *Config) Find(ctx context.Context, target *url.URL, search string) (bo
)
defer ccancel()

tctx, tcancel := context.WithTimeout(cctx, 15*time.Second)
tctx, tcancel := context.WithTimeout(cctx, 150*time.Second)
defer tcancel()

var htmlContent string
Expand Down

0 comments on commit 0850b87

Please sign in to comment.