mirror of
https://github.com/cloudnative-pg/plugin-barman-cloud.git
synced 2026-01-11 21:23:12 +01:00
chore: log message
Signed-off-by: Leonardo Cecchi <leonardo.cecchi@enterprisedb.com>
This commit is contained in:
parent
898bd4eaba
commit
765868cb68
@ -121,7 +121,8 @@ func (w WALServiceImplementation) Restore(
|
||||
ctx context.Context,
|
||||
request *wal.WALRestoreRequest,
|
||||
) (*wal.WALRestoreResult, error) {
|
||||
// TODO: build full paths
|
||||
contextLogger := log.FromContext(ctx)
|
||||
|
||||
walName := request.GetSourceWalName()
|
||||
destinationPath := request.GetDestinationFileName()
|
||||
|
||||
@ -156,6 +157,11 @@ func (w WALServiceImplementation) Restore(
|
||||
}
|
||||
}
|
||||
|
||||
contextLogger.Info(
|
||||
"Restoring WAL file",
|
||||
"objectStore", objectStore.Name,
|
||||
"serverName", serverName,
|
||||
"walName", walName)
|
||||
return &wal.WALRestoreResult{}, w.restoreFromBarmanObjectStore(
|
||||
ctx, configuration.Cluster, &objectStore, serverName, walName, destinationPath)
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user