Add better logging
This commit is contained in:
parent
c9b2ab65b3
commit
6ad6e3429f
@ -106,7 +106,7 @@ var rootCmd = &cobra.Command{
|
||||
if result.Error != nil {
|
||||
// Verbose enabled
|
||||
if verbose {
|
||||
log.Debug().Msg(result.Error.Error())
|
||||
log.Err(result.Error).Msg("")
|
||||
}
|
||||
return
|
||||
}
|
||||
@ -170,7 +170,10 @@ var rootCmd = &cobra.Command{
|
||||
|
||||
// Go through domains
|
||||
for domain, count := range domains {
|
||||
log.Info().Str("subdomains", fmt.Sprintf("%d", count)).Msg(domain)
|
||||
log.Info().
|
||||
Str("domain", domain).
|
||||
Str("subdomains", fmt.Sprintf("%d", count)).
|
||||
Msg("Domain counter")
|
||||
}
|
||||
},
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user