Skip to content

Commit

Permalink
Merge pull request #108 from testwill/pkg-import
Browse files Browse the repository at this point in the history
chore: pkg import only once
  • Loading branch information
lc committed Oct 20, 2023
2 parents 85deaa7 + 5a6ec30 commit dea871a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions runner/flags/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import (
"github.com/lc/gau/v2/pkg/providers"
"github.com/lynxsecurity/pflag"
"github.com/lynxsecurity/viper"
"github.com/sirupsen/logrus"
log "github.com/sirupsen/logrus"
"github.com/valyala/fasthttp"
"github.com/valyala/fasthttp/fasthttpproxy"
Expand Down Expand Up @@ -82,9 +81,9 @@ func (c *Config) ProviderConfig() (*providers.Config, error) {
OTX: c.OTX,
}

logrus.SetLevel(log.ErrorLevel)
log.SetLevel(log.ErrorLevel)
if c.Verbose {
logrus.SetLevel(log.InfoLevel)
log.SetLevel(log.InfoLevel)
}
pc.Blacklist = mapset.NewThreadUnsafeSet(c.Blacklist...)
pc.Blacklist.Add("")
Expand Down

0 comments on commit dea871a

Please sign in to comment.