diff --git a/v2/pkg/passive/passive.go b/v2/pkg/passive/passive.go index 4843f33..539dcdd 100644 --- a/v2/pkg/passive/passive.go +++ b/v2/pkg/passive/passive.go @@ -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) diff --git a/v2/pkg/runner/enumerate.go b/v2/pkg/runner/enumerate.go index 119d51c..d9c0a05 100644 --- a/v2/pkg/runner/enumerate.go +++ b/v2/pkg/runner/enumerate.go @@ -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{}{} diff --git a/v2/pkg/subscraping/sources/github/github.go b/v2/pkg/subscraping/sources/github/github.go index e0d42ba..def26ea 100644 --- a/v2/pkg/subscraping/sources/github/github.go +++ b/v2/pkg/subscraping/sources/github/github.go @@ -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()