Skip to content

Commit 765868c

Browse files
leonardocefcanovai
authored andcommitted
chore: log message
Signed-off-by: Leonardo Cecchi <[email protected]>
1 parent 898bd4e commit 765868c

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

internal/cnpgi/common/wal.go

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,8 @@ func (w WALServiceImplementation) Restore(
121121
ctx context.Context,
122122
request *wal.WALRestoreRequest,
123123
) (*wal.WALRestoreResult, error) {
124-
// TODO: build full paths
124+
contextLogger := log.FromContext(ctx)
125+
125126
walName := request.GetSourceWalName()
126127
destinationPath := request.GetDestinationFileName()
127128

@@ -156,6 +157,11 @@ func (w WALServiceImplementation) Restore(
156157
}
157158
}
158159

160+
contextLogger.Info(
161+
"Restoring WAL file",
162+
"objectStore", objectStore.Name,
163+
"serverName", serverName,
164+
"walName", walName)
159165
return &wal.WALRestoreResult{}, w.restoreFromBarmanObjectStore(
160166
ctx, configuration.Cluster, &objectStore, serverName, walName, destinationPath)
161167
}

0 commit comments

Comments
 (0)