1
0
mirror of https://github.com/postgrespro/pg_probackup.git synced 2025-02-09 14:33:17 +02:00

minor changes to log level and log messages

This commit is contained in:
Grigory Smolkin 2018-01-23 13:43:31 +03:00
parent 9d9a885734
commit 1f31693658
2 changed files with 3 additions and 4 deletions

View File

@ -656,7 +656,7 @@ do_backup_instance(void)
/* Run threads */ /* Run threads */
for (i = 0; i < num_threads; i++) for (i = 0; i < num_threads; i++)
{ {
elog(LOG, "Start thread num:%i", i); elog(VERBOSE, "Start thread num: %i", i);
if (!is_remote_backup) if (!is_remote_backup)
pthread_create(&backup_threads[i], NULL, pthread_create(&backup_threads[i], NULL,

View File

@ -285,7 +285,7 @@ backup_data_page(backup_files_args *arguments,
* throw an error. * throw an error.
*/ */
if(!page_is_valid && !is_ptrack_support) if(!page_is_valid && !is_ptrack_support)
elog(ERROR, "Data file checksum mismatch, canceling backup"); elog(ERROR, "Data file checksum mismatch. Canceling backup");
} }
if (backup_mode == BACKUP_MODE_DIFF_PTRACK || (!page_is_valid && is_ptrack_support)) if (backup_mode == BACKUP_MODE_DIFF_PTRACK || (!page_is_valid && is_ptrack_support))
@ -304,8 +304,7 @@ backup_data_page(backup_files_args *arguments,
} }
else if (page_size != BLCKSZ) else if (page_size != BLCKSZ)
{ {
elog(ERROR, "File: %s, block %u, expected block size %lu," elog(ERROR, "File: %s, block %u, expected block size %lu, but read %d",
"but read %d, try again",
file->path, absolute_blknum, page_size, BLCKSZ); file->path, absolute_blknum, page_size, BLCKSZ);
} }
else else