Skip to content

Commit 2e5b1c6

Browse files
logging for renaming partial WAL files
1 parent 6a78754 commit 2e5b1c6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pghoard/pghoard.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -961,6 +961,7 @@ def _rename_partial_files_if_completed(self, site: str, wal_location: str) -> No
961961
# TODO: handle partial files that are incompleted
962962
return
963963

964+
self.log.info("Found a completed partial WAL file %r, renaming before shutdown.", partial_file_path)
964965
# this will not trigger inotify
965966
os.rename(partial_file_path, renamed_partial_file_path)
966967

0 commit comments

Comments
 (0)