Fixed verbose logging
This commit is contained in:
parent
2c479fcd1e
commit
b217242514
@ -108,7 +108,6 @@ var rootCmd = &cobra.Command{
|
||||
|
||||
// Check error
|
||||
if result.Error != nil {
|
||||
// Verbose enabled
|
||||
if verbose {
|
||||
log.Err(result.Error).Msg("")
|
||||
}
|
||||
@ -118,8 +117,10 @@ var rootCmd = &cobra.Command{
|
||||
// Verify check
|
||||
if verify {
|
||||
if !dns.Verify(result.Subdomain) {
|
||||
if verbose {
|
||||
log.Err(errors.New(fmt.Sprintf("Could not verify %s", result.Subdomain))).
|
||||
Msg("")
|
||||
}
|
||||
return
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user