From 765868cb68fed6d23e5e82a40b80f5f18dc345ef Mon Sep 17 00:00:00 2001 From: Leonardo Cecchi Date: Fri, 6 Dec 2024 12:05:49 +0100 Subject: [PATCH] chore: log message Signed-off-by: Leonardo Cecchi --- internal/cnpgi/common/wal.go | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/internal/cnpgi/common/wal.go b/internal/cnpgi/common/wal.go index 412fed3..124b5cf 100644 --- a/internal/cnpgi/common/wal.go +++ b/internal/cnpgi/common/wal.go @@ -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) }