Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 23abfcb

Browse files
committed
change WARNING message to LOG in verbose mode
1 parent d10e5f1 commit 23abfcb

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

data.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,10 @@ backup_data_page(pgFile *file, const XLogRecPtr *lsn,
8181

8282
if (st.st_size/BLCKSZ <= blknum)
8383
{
84-
elog(WARNING, "File: %s, file was truncated after backup start."
85-
"Expected nblocks %u. Real nblocks %ld. Cannot read block %u ",
86-
file->path, nblocks, st.st_size/BLCKSZ, blknum);
84+
if (verbose)
85+
elog(LOG, "File: %s, file was truncated after backup start."
86+
"Expected nblocks %u. Real nblocks %ld. Cannot read block %u ",
87+
file->path, nblocks, st.st_size/BLCKSZ, blknum);
8788
return;
8889
}
8990
else

0 commit comments

Comments
 (0)