Skip to content

Commit 5e10552

Browse files
committed
[PBCKP-129] change catchup logging levels (postgrespro#473)
* [PBCKP-129] change catchup logging level verbosity: INFO – common information LOG – same as INFO + info about files VERBOSE – same as LOG + info about block and SQL queries
1 parent 65123e6 commit 5e10552

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

src/catchup.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -936,7 +936,7 @@ do_catchup(const char *source_pgdata, const char *dest_pgdata, int num_threads,
936936
join_path_components(fullpath, dest_pgdata, file->rel_path);
937937

938938
if (dry_run || fio_remove(FIO_LOCAL_HOST, fullpath, false) == 0)
939-
elog(VERBOSE, "Deleted file \"%s\"", fullpath);
939+
elog(LOG, "Deleted file \"%s\"", fullpath);
940940
else
941941
elog(ERROR, "Cannot delete redundant file in destination \"%s\": %s", fullpath, strerror(errno));
942942

src/dir.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1661,7 +1661,7 @@ cleanup_tablespace(const char *path)
16611661
join_path_components(fullpath, path, file->rel_path);
16621662

16631663
if (fio_remove(FIO_DB_HOST, fullpath, true) == 0)
1664-
elog(VERBOSE, "Deleted file \"%s\"", fullpath);
1664+
elog(LOG, "Deleted file \"%s\"", fullpath);
16651665
else
16661666
elog(ERROR, "Cannot delete file or directory \"%s\": %s", fullpath, strerror(errno));
16671667
}

src/merge.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -799,7 +799,7 @@ merge_chain(InstanceState *instanceState,
799799
join_path_components(full_file_path, full_database_dir, full_file->rel_path);
800800

801801
if (fio_remove(FIO_BACKUP_HOST, full_file_path, true) == 0)
802-
elog(VERBOSE, "Deleted \"%s\"", full_file_path);
802+
elog(LOG, "Deleted \"%s\"", full_file_path);
803803
else
804804
elog(ERROR, "Cannot delete file or directory \"%s\": %s", full_file_path, strerror(errno));
805805
}
@@ -1135,7 +1135,7 @@ remove_dir_with_files(const char *path)
11351135
join_path_components(full_path, path, file->rel_path);
11361136

11371137
if (fio_remove(FIO_LOCAL_HOST, full_path, true) == 0)
1138-
elog(VERBOSE, "Deleted \"%s\"", full_path);
1138+
elog(LOG, "Deleted \"%s\"", full_path);
11391139
else
11401140
elog(ERROR, "Cannot delete file or directory \"%s\": %s", full_path, strerror(errno));
11411141
}

src/restore.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -918,7 +918,7 @@ restore_chain(pgBackup *dest_backup, parray *parent_chain,
918918
join_path_components(fullpath, pgdata_path, file->rel_path);
919919

920920
if (fio_remove(FIO_DB_HOST, fullpath, false) == 0)
921-
elog(VERBOSE, "Deleted file \"%s\"", fullpath);
921+
elog(LOG, "Deleted file \"%s\"", fullpath);
922922
else
923923
elog(ERROR, "Cannot delete redundant file \"%s\": %s", fullpath, strerror(errno));
924924

0 commit comments

Comments
 (0)