output fix
parent
ef8c9c717f
commit
812fc9abd5
|
@ -47,7 +47,7 @@ func (a *Agent) EnumerateSubdomains(domain string, keys *subscraping.Keys, timeo
|
|||
wg.Wait()
|
||||
|
||||
for source, data := range timeTaken {
|
||||
gologger.Verbose().Msgf(data, source)
|
||||
gologger.Verbose().Lable(source).Msg(data)
|
||||
}
|
||||
|
||||
close(results)
|
||||
|
|
|
@ -65,7 +65,7 @@ func (r *Runner) EnumerateSingleDomain(ctx context.Context, domain, output strin
|
|||
|
||||
// Log the verbose message about the found subdomain per source
|
||||
if _, ok := sourceMap[subdomain][result.Source]; !ok {
|
||||
gologger.Verbose().Msgf("[%s] %s\n", result.Source, subdomain)
|
||||
gologger.Verbose().Lable(result.Source).Msg(subdomain)
|
||||
}
|
||||
|
||||
sourceMap[subdomain][result.Source] = struct{}{}
|
||||
|
|
|
@ -69,7 +69,7 @@ func (s *Source) enumerate(ctx context.Context, searchURL string, domainRegexp *
|
|||
|
||||
if token.RetryAfter > 0 {
|
||||
if len(tokens.pool) == 1 {
|
||||
gologger.Verbose().Msgf("GitHub Search request rate limit exceeded, waiting for %d seconds before retry... \n", s.Name(), token.RetryAfter)
|
||||
gologger.Verbose().Lable(s.Name()).Msgf("GitHub Search request rate limit exceeded, waiting for %d seconds before retry... \n", token.RetryAfter)
|
||||
time.Sleep(time.Duration(token.RetryAfter) * time.Second)
|
||||
} else {
|
||||
token = tokens.Get()
|
||||
|
|
Loading…
Reference in New Issue