feat: log the downloaded backup catalog before restore

Closes: #319

Signed-off-by: Leonardo Cecchi <leonardo.cecchi@enterprisedb.com>
This commit is contained in:
Leonardo Cecchi 2025-05-07 11:39:21 +02:00 committed by Francesco Canovai
parent 087623f3f2
commit 5615ca2660

View File

@ -358,10 +358,12 @@ func loadBackupObjectFromExternalCluster(
return nil, nil, err return nil, nil, err
} }
contextLogger.Info("Downloading backup catalog")
backupCatalog, err := barmanCommand.GetBackupList(ctx, recoveryObjectStore, serverName, env) backupCatalog, err := barmanCommand.GetBackupList(ctx, recoveryObjectStore, serverName, env)
if err != nil { if err != nil {
return nil, nil, err return nil, nil, err
} }
contextLogger.Info("Downloaded backup catalog", "backupCatalog", backupCatalog)
// We are now choosing the right backup to restore // We are now choosing the right backup to restore
var targetBackup *barmanCatalog.BarmanBackup var targetBackup *barmanCatalog.BarmanBackup