1
0
mirror of https://github.com/postgrespro/pg_probackup.git synced 2024-12-02 09:53:24 +02:00

minor changes to elevel of certain messages

This commit is contained in:
Grigory Smolkin 2017-12-08 16:24:35 +03:00
parent 61d57b63db
commit bdb47b744f
4 changed files with 11 additions and 10 deletions

View File

@ -426,7 +426,7 @@ remote_backup_files(void *arg)
/* receive the data from stream and write to backup file */
remote_copy_file(file_backup_conn, file);
elog(LOG, "File \"%s\". Copied %lu bytes",
elog(VERBOSE, "File \"%s\". Copied %lu bytes",
file->path, (unsigned long) file->write_size);
PQfinish(file_backup_conn);
}
@ -823,9 +823,6 @@ do_backup(time_t start_time)
if (!is_remote_backup)
check_system_identifiers();
elog(LOG, "Backup start. backup-mode = %s, stream = %s, remote = %s",
pgBackupGetBackupMode(&current), current.stream ? "true" : "false",
is_remote_backup ? "true" : "false");
/* Start backup. Update backup status. */
current.status = BACKUP_STATUS_RUNNING;
@ -1888,7 +1885,7 @@ backup_cleanup(bool fatal, void *userdata)
*/
if (current.status == BACKUP_STATUS_RUNNING && current.end_time == 0)
{
elog(LOG, "Backup is running, update its status to ERROR");
elog(INFO, "Backup %s is running, setting its status to ERROR", base36enc(current.start_time));
current.end_time = time(NULL);
current.status = BACKUP_STATUS_ERROR;
pgBackupWriteBackupControlFile(&current);
@ -2000,7 +1997,7 @@ backup_files(void *arg)
continue;
}
elog(LOG, "File \"%s\". Copied %lu bytes",
elog(VERBOSE, "File \"%s\". Copied %lu bytes",
file->path, (unsigned long) file->write_size);
}
else

View File

@ -140,7 +140,10 @@ do_retention_purge(void)
elog(LOG, "WINDOW=%u", retention_window);
if (retention_redundancy == 0 && retention_window == 0)
elog(ERROR, "retention policy is not set");
{
elog(WARNING, "Retention policy is not set");
return 0;
}
/* Get exclusive lock of backup catalog */
catalog_lock();

View File

@ -426,8 +426,9 @@ main(int argc, char *argv[])
backup_id = base36enc(start_time);
backup_mode = deparse_backup_mode(current.backup_mode);
elog_file(INFO, "pg_probackup version: %s, backup ID: %s, backup mode: %s, instance: %s",
PROGRAM_VERSION, backup_id, backup_mode, instance_name);
elog(INFO, "Backup start, pg_probackup version: %s, backup ID: %s, backup mode: %s, instance: %s, stream: %s, remote: %s",
PROGRAM_VERSION, backup_id, backup_mode, instance_name,
current.stream ? "true" : "false", is_remote_backup ? "true" : "false");
elog_file(INFO, "command: %s", command);
pfree(backup_id);

View File

@ -145,7 +145,7 @@ pgBackupValidateFiles(void *arg)
continue;
/* print progress */
elog(LOG, "Validate files: (%d/%lu) %s",
elog(VERBOSE, "Validate files: (%d/%lu) %s",
i + 1, (unsigned long) parray_num(arguments->files), file->path);
if (stat(file->path, &st) == -1)