From 5615ca26603584b6d0a90f55ce1f1cdfb7c8b7f3 Mon Sep 17 00:00:00 2001 From: Leonardo Cecchi Date: Wed, 7 May 2025 11:39:21 +0200 Subject: [PATCH] feat: log the downloaded backup catalog before restore Closes: #319 Signed-off-by: Leonardo Cecchi --- internal/cnpgi/restore/restore.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/internal/cnpgi/restore/restore.go b/internal/cnpgi/restore/restore.go index ae1a776..de0790f 100644 --- a/internal/cnpgi/restore/restore.go +++ b/internal/cnpgi/restore/restore.go @@ -358,10 +358,12 @@ func loadBackupObjectFromExternalCluster( return nil, nil, err } + contextLogger.Info("Downloading backup catalog") backupCatalog, err := barmanCommand.GetBackupList(ctx, recoveryObjectStore, serverName, env) if err != nil { return nil, nil, err } + contextLogger.Info("Downloaded backup catalog", "backupCatalog", backupCatalog) // We are now choosing the right backup to restore var targetBackup *barmanCatalog.BarmanBackup