[client] Add output similar to wg show to the debug package (#3922)

This commit is contained in:
Zoltan Papp
2025-06-05 11:51:39 +02:00
committed by GitHub
parent 609654eee7
commit 9424b88db2
12 changed files with 338 additions and 1 deletions

View File

@ -270,11 +270,16 @@ func (g *BundleGenerator) createArchive() error {
log.Errorf("Failed to add corrupted state files to debug bundle: %v", err)
}
if err := g.addWgShow(); err != nil {
log.Errorf("Failed to add wg show output: %v", err)
}
if g.logFile != "console" {
if err := g.addLogfile(); err != nil {
return fmt.Errorf("add log file: %w", err)
}
}
return nil
}