chore: log message

Signed-off-by: Leonardo Cecchi <leonardo.cecchi@enterprisedb.com>
This commit is contained in:
Leonardo Cecchi 2024-12-06 12:05:49 +01:00 committed by Francesco Canovai
parent 898bd4eaba
commit 765868cb68

View File

@ -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)
} }