From d9b7dee30f1bed00ca7a2c53b7de7c197003f65e Mon Sep 17 00:00:00 2001 From: Grigory Smolkin Date: Thu, 11 Jun 2020 18:16:55 +0300 Subject: [PATCH] [Issue #66] nitpicking --- src/restore.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/restore.c b/src/restore.c index 6584a062..e71ecd52 100644 --- a/src/restore.c +++ b/src/restore.c @@ -832,7 +832,7 @@ restore_chain(pgBackup *dest_backup, parray *parent_chain, join_path_components(full_file_path, pgdata_path, file->rel_path); fio_pgFileDelete(file, full_file_path); - elog(WARNING, "Deleted file \"%s\"", full_file_path); + elog(VERBOSE, "Deleted file \"%s\"", full_file_path); /* shrink pgdata list */ parray_remove(pgdata_files, i); @@ -1461,6 +1461,7 @@ pg12_recovery_config(pgBackup *backup, bool add_include) elog(ERROR, "cannot write to file \"%s\": %s", postgres_auto_path, strerror(errno)); + // TODO: check if include 'probackup_recovery.conf' already exists fio_fprintf(fp, "\n# created by pg_probackup restore of backup %s at '%s'\n", base36enc(backup->start_time), current_time_str); fio_fprintf(fp, "include '%s'\n", "probackup_recovery.conf");