Skip to content

Commit dea871a

Browse files
authored
Merge pull request #108 from testwill/pkg-import
chore: pkg import only once
2 parents 85deaa7 + 5a6ec30 commit dea871a

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

runner/flags/flags.go

+2-3
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ import (
1414
"github.com/lc/gau/v2/pkg/providers"
1515
"github.com/lynxsecurity/pflag"
1616
"github.com/lynxsecurity/viper"
17-
"github.com/sirupsen/logrus"
1817
log "github.com/sirupsen/logrus"
1918
"github.com/valyala/fasthttp"
2019
"github.com/valyala/fasthttp/fasthttpproxy"
@@ -82,9 +81,9 @@ func (c *Config) ProviderConfig() (*providers.Config, error) {
8281
OTX: c.OTX,
8382
}
8483

85-
logrus.SetLevel(log.ErrorLevel)
84+
log.SetLevel(log.ErrorLevel)
8685
if c.Verbose {
87-
logrus.SetLevel(log.InfoLevel)
86+
log.SetLevel(log.InfoLevel)
8887
}
8988
pc.Blacklist = mapset.NewThreadUnsafeSet(c.Blacklist...)
9089
pc.Blacklist.Add("")

0 commit comments

Comments
 (0)