mirror of
https://github.com/cloudnative-pg/plugin-barman-cloud.git
synced 2026-01-12 05:33:11 +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,
|
ctx context.Context,
|
||||||
request *wal.WALRestoreRequest,
|
request *wal.WALRestoreRequest,
|
||||||
) (*wal.WALRestoreResult, error) {
|
) (*wal.WALRestoreResult, error) {
|
||||||
// TODO: build full paths
|
contextLogger := log.FromContext(ctx)
|
||||||
|
|
||||||
walName := request.GetSourceWalName()
|
walName := request.GetSourceWalName()
|
||||||
destinationPath := request.GetDestinationFileName()
|
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(
|
return &wal.WALRestoreResult{}, w.restoreFromBarmanObjectStore(
|
||||||
ctx, configuration.Cluster, &objectStore, serverName, walName, destinationPath)
|
ctx, configuration.Cluster, &objectStore, serverName, walName, destinationPath)
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user