Reduce spurious logging
This commit is contained in:
@ -212,10 +212,12 @@ func (rb *RouterBackup) BackupCommands(commands []string, outputDir string) erro
|
|||||||
file.WriteString(output)
|
file.WriteString(output)
|
||||||
file.Close()
|
file.Close()
|
||||||
|
|
||||||
fmt.Printf("Output saved to %s\n", filepath)
|
|
||||||
successCount++
|
successCount++
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if successCount > 0 {
|
||||||
|
fmt.Printf("Output saved to %s\n", filepath)
|
||||||
|
}
|
||||||
fmt.Printf("Summary: %d/%d commands successful\n", successCount, len(commands))
|
fmt.Printf("Summary: %d/%d commands successful\n", successCount, len(commands))
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user