Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e1c4f8f

Browse files
committed
remove noninformative elog messages in restore
1 parent f697d57 commit e1c4f8f

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

src/restore.c

+1-10
Original file line numberDiff line numberDiff line change
@@ -686,16 +686,13 @@ restore_files(void *arg)
686686
(arguments->backup->backup_mode == BACKUP_MODE_DIFF_PAGE
687687
|| arguments->backup->backup_mode == BACKUP_MODE_DIFF_PTRACK))
688688
{
689-
elog(VERBOSE, "The file didn`t change. Skip restore: %s", file->path);
689+
elog(VERBOSE, "The file didn`t change. Skip restore: \"%s\"", file->path);
690690
continue;
691691
}
692692

693693
/* Directories were created before */
694694
if (S_ISDIR(file->mode))
695-
{
696-
elog(VERBOSE, "Directory, skip");
697695
continue;
698-
}
699696

700697
/* Do not restore tablespace_map file */
701698
if (path_is_prefix_of_path(PG_TABLESPACE_MAP_FILE, file->rel_path))
@@ -706,18 +703,12 @@ restore_files(void *arg)
706703

707704
/* Do no restore external directory file if a user doesn't want */
708705
if (skip_external_dirs && file->external_dir_num > 0)
709-
{
710-
elog(VERBOSE, "Skip external directory file");
711706
continue;
712-
}
713707

714708
/* Skip unnecessary file */
715709
if (parray_bsearch(arguments->dest_files, file,
716710
pgFileCompareRelPathWithExternal) == NULL)
717-
{
718-
elog(VERBOSE, "Skip removed file");
719711
continue;
720-
}
721712

722713
/*
723714
* restore the file.

0 commit comments

Comments
 (0)